From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 08:38:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25F4916A4CF for ; Tue, 18 Jan 2005 08:38:50 +0000 (GMT) Received: from nabi1.snu.ac.kr (nabi1.snu.ac.kr [147.46.100.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABC7743D46 for ; Tue, 18 Jan 2005 08:38:49 +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 2005011817:39:57:862863.19915.3040668592 for ; Tue, 18 Jan 2005 17:39:57 +0900 (KST) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk2.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2005011817:38:30:065332.14267.1894775728 for ; Tue, 18 Jan 2005 17:38:30 +0900 (KST) Message-ID: <41ECCB13.6020105@yahoo.com> Date: Tue, 18 Jan 2005 17:38:43 +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 To: spamrefuse@yahoo.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:4.33) (by Terrace) cc: FreeBSD Subject: User's cron job creates zombie process on 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 08:38:50 -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.