FROM : Finlay Dobbie
DATE : Mon Oct 25 15:30:29 2004
On Mon, 25 Oct 2004 15:10:54 +0200, M. Uli Kusterer
<witness.of.<email_removed>> wrote:
> At 14:42 Uhr +0200 25.10.2004, Dominik Freyer wrote:
> > duOutput=[fromDu readDataOfLength:10];
>
> Try readDataToEndOfFile or whatever the method is called instead. If
> the output from du is shorter than 10 bytes, your code will keep
> waiting for more data while du has already hung up.
Just out of interest, why not use fts, which is what du uses anyway?
<http://darwinsource.opendarwin.org/10.3.5/file_cmds/du/du.c>
-- Finlay
DATE : Mon Oct 25 15:30:29 2004
On Mon, 25 Oct 2004 15:10:54 +0200, M. Uli Kusterer
<witness.of.<email_removed>> wrote:
> At 14:42 Uhr +0200 25.10.2004, Dominik Freyer wrote:
> > duOutput=[fromDu readDataOfLength:10];
>
> Try readDataToEndOfFile or whatever the method is called instead. If
> the output from du is shorter than 10 bytes, your code will keep
> waiting for more data while du has already hung up.
Just out of interest, why not use fts, which is what du uses anyway?
<http://darwinsource.opendarwin.org/10.3.5/file_cmds/du/du.c>
-- Finlay






Cocoa mail archive

