From owner-freebsd-stable@FreeBSD.ORG Wed Jan 19 00:17:04 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 3E0AF16A4DD for ; Wed, 19 Jan 2005 00:17:04 +0000 (GMT) Received: from nabi1.snu.ac.kr (nabi1.snu.ac.kr [147.46.100.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id B370843D1D for ; Wed, 19 Jan 2005 00:17:03 +0000 (GMT) (envelope-from lahaye@snu.ac.kr) Received: from [147.46.100.31] ([147.46.100.31]) by nabi1.snu.ac.kr ([147.46.100.51]) with ESMTP id 2005011909:18:16:087436.29014.3051944880 for ; Wed, 19 Jan 2005 09:18:16 +0900 (KST) Received: from [147.46.44.181] (lahaye@snu.ac.kr) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2005011909:16:53:441464.21525.1386216368 for ; Wed, 19 Jan 2005 09:16:53 +0900 (KST) Message-ID: <41EDA6FB.6000706@snu.ac.kr> Date: Wed, 19 Jan 2005 09:16:59 +0900 From: Rob Lahaye 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 To: spamrefuse@yahoo.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:18.08) (by Terrace) cc: freebsd-stable@freebsd.org Subject: 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 00:17:04 -0000 Hi, As a regular user, I have a cron job; 'crontab -l' says: ----------------------------------------- SHELL=/bin/sh MAILTO="" # run at bootup and then every 5 minutes @reboot $HOME/bin/ssh_tunnel */5 * * * * $HOME/bin/ssh_tunnel ----------------------------------------- The ssh_tunnel is an sh-script, which checks whether a particular ssh-tunnel still exists, and if not regenerates it, as follows: #!/bin/sh #---------------- ssh_tunnel script --------- 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 The "STARTED" time, is when the PC rebooted last time. When I remove the cronjob and reboot, the zombie process is not created anymore. Any idea what's the problem here? Thanks, Rob.