On Wed, 2005-Jan-19 09:16:59 +0900, Rob Lahaye wrote:
>  tunnel="-L 55110:localhost:110 pop3.univ.net"
>  tunnel_up=`pgrep -f -- "${tunnel}"`
>  [ "${tunnel_up}" = "" ] && /usr/bin/ssh -N -f ${tunnel}

>It works beautifully, but why does this also generate one zombie process:
> USER  PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
> rob   655  0.0  0.0     0    0  ??  Z    Sat02PM   0:00.01 <defunct>

You get a zombie when a process has exited and the parent hasn't issued
a wait(2) (or SIG_IGN'd SIGCHLD).  Have a look at what the parent process
is and that might give you an idea as to what is going wrong.

-- 
Peter Jeremy
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to