On Fri, Sep 21, 2001 at 11:37:33PM -0700, Randall Gellens wrote:
>
[snip]
>
> Here is the waiter source:
>
> int main ( int argc, char** argv )
> {
> while ( getpid() != 1 )
> sleep ( 300 );
> exit ( 0 );
> }
>
> I think I may have realized the second problem: getpid(2) never fails
> on BSD systems. But still, the child should be killed when the sshd
> process goes away, shouldn't it? Is there better code to use for
> this?
>
Do you perhaps mean to use getppid in the above code?
>
[snip]
>
aisa
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]