From owner-freebsd-stable@FreeBSD.ORG Wed Jan 19 06:52:31 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7623216A4E5 for ; Wed, 19 Jan 2005 06:52:31 +0000 (GMT) Received: from nabi1.snu.ac.kr (nabi1.snu.ac.kr [147.46.100.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B44243D49 for ; Wed, 19 Jan 2005 06:52:31 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.100.32] ([147.46.100.32]) by nabi1.snu.ac.kr ([147.46.100.51]) with ESMTP id 2005011915:53:38:979842.29014.3039816624 for ; Wed, 19 Jan 2005 15:53:38 +0900 (KST) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2005011915:52:10:292294.12589.3027430320 for ; Wed, 19 Jan 2005 15:52:10 +0900 (KST) Message-ID: <41EE03A6.7080404@yahoo.com> Date: Wed, 19 Jan 2005 15:52:22 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050105 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-stable@freebsd.org References: <41EDA6FB.6000706@snu.ac.kr> <20050119064822.GA65506@cirb503493.alcatel.com.au> In-Reply-To: <20050119064822.GA65506@cirb503493.alcatel.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:1.35) (by Terrace) Subject: Re: User's cron job creates zombie process on 5.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 06:52:32 -0000 Peter Jeremy wrote: > 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 > > 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. Sorry, can you tell me how to do this? How can I find out what's the parent process of a Zombie process? I have a user crontab, which calls a sh-shell script; so I have no clue where to start investigating.... Thanks, Rob.