help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [Possible bug] #upToEnd etc on certain files


From: Bonzini
Subject: Re: [Help-smalltalk] [Possible bug] #upToEnd etc on certain files
Date: Wed, 21 Aug 2002 14:38:35 +0200

> >     (FileStream popen: 'cat /proc/rd/status' dir: FileStream read)
upToEnd

This could be better (pipes sometimes have a race condition in 2.0.x between
SIGIO and SIGCHLD):

   FileStream fopen: '/proc/rd/status#nop' mode: FileStream read

This uses the virtual file system `nop' which `cat's to a temporary file (it
is there as a debugging tool mostly, but it looks like it can be useful...).

> Thanks! I take it you've identified the problem.

Yes, it is caused by the fake 0 bytes file size of /proc files in Linux.

Paolo







reply via email to

[Prev in Thread] Current Thread [Next in Thread]