Hi list.

I'vre read somewhere (I think in one of perl's man pages) that you can use
kill to send a "0 signal" to a process, to see if it is still runing. the
kill(2) man page seems to confirm that, saying that if sig is 0, no signal
will be sent, but error checking is till performed - from which I came to
the conclusion that it will check that there is a process with the pid I
have and return an error code otherwise (btw - did you know that KDE2 has
a 'man pages' kio_slave ? try 'man:kill' in your konqi's location bar :-)
anyway, to my problem : I tried to use that method to check if a sub
process I forked is still runing, and instead of returning 0 correctly (I
checked with ps, the sub process is indeed running), it returns with the
error code "Invalid argument". how come ?

Thanks

Oded

--
X windows:
        Putting new limits on productivity.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to