|
|
Subject: how to exit a script without causing defunct in system
From: Robert Heller
Date: 11/5/2007 4:27:05 PM
At Sun, 04 Nov 2007 19:47:17 -0800 a10.part@gmail.com wrote:
>
>
> Hi, Gurus:
>
> I am using a parent process to execute some sub process by using "exec
> xxx.tcl &", but even xxx.tcl exit normally, I always found a xxx
> defunct in linux system, how to avoid this? thanks.
The parent process needs to 'wait' (see 'man 2 wait').
>
> /zhenwu
>
>
--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
|