Mail Archives: djgpp-workers/1999/08/04/02:54:43
On Tue, 3 Aug 1999, DJ Delorie wrote:
> Hmmm... kill() works, there just never is another program suitable for
> tail to monitor.
On DOS, yes; but not on Windows. "tail --forever" works just fine on
Windows 9X, and even better on NT, where you really *can* rename or
remove an open file, then rename/create it back, and have the expected
Unix behavior. But `kill' cannot monitor other VMs.
> Wouldn't tail just print "no such process" or something?
The question is: how do you define the condition when such a message
is printed.
Or are you suggesting a change to `kill', for the branch where the
passed pid is not the caller's pid?
> As for the __stub hack, I think it's a hack and I'd rather avoid
> adding hacks to djgpp's headers.
Then how about changing `kill's behavior instead, so this case would
be easily detectable by an application? Right now, we simply return
non-zero and don't even set errno.
- Raw text -