From owner-freebsd-questions Sun Nov 19 13:28:05 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA28919 for questions-outgoing; Sun, 19 Nov 1995 13:28:05 -0800 Received: from vellocet.insync.net (vellocet.insync.net [204.253.208.10]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA28840 for ; Sun, 19 Nov 1995 13:28:00 -0800 Received: from mailhost.insync.net ([204.253.208.172]) by vellocet.insync.net (8.7.1/8.7.1) with SMTP id PAA23682 for ; Sun, 19 Nov 1995 15:22:19 -0600 (CST) Message-Id: <199511192122.PAA23682@vellocet.insync.net> X-Sender: rberndt@nething.com X-Mailer: Windows Eudora Version 2.1.1 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 19 Nov 1995 14:28:14 -0600 To: freebsd-questions@FreeBSD.org From: Randy Berndt Subject: Cap'n, there be Zombies here! Sender: owner-questions@FreeBSD.org Precedence: bulk I am having a problem with a process generating zombies on a 2.0.5R system. The process forks, and the child queues up a print file to a specific printer: sprintf(qcommand, "lp -c -d %s %s;rm %s;exit 0", printername, filename, filename); execlp("/bin/sh", "sh", "-c", qcommand, 0); exit(0); It appears this code is generating the zombies. Questions: How does a zombie get created anyway? How can I examine a zombie to verify where it is coming from? Does anything in the code look wrong? Thanks. Randy Berndt ---------------------------------- AOS/VS, FreeBSD, DOS: I'm in a maze of twisty little command interpreters, all different.