SPUG: Creating a NON zombie daemon

Thomas Holkenbrink Thomas_Holkenbrink at emeraldsolutions.com
Tue Apr 18 15:06:55 CDT 2000


> Either that or the PID itself since the execed process
> will re-use the same number.

The PID changes from run time till the exec... if the proccess starts out as
one PID then changes to another??? 



Hmmmm

theres a getppid() function but that returns the Parent not the actual PID?

-----Original Message-----
From: ced at carios2.ca.boeing.com [mailto:ced at carios2.ca.boeing.com]
Sent: Tuesday, April 18, 2000 12:47 PM
To: Thomas_Holkenbrink at emeraldsolutions.com; spug-list at pm.org
Subject: RE: SPUG: Creating a NON zombie daemon



> Alright .. with a little better understanding and a good read of the
> differences between the two.. System and Exec..  so the next problem is
Now
> that the daemon is running what would be the quickest way to grep the PID
of
> that process... a grep through ps -ef looking for my class name??

Either that or the PID itself since the execed process
will re-use the same number.

Rgds,
--
Charles DeRykus

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
           Email to majordomo at pm.org: "action" spug-list your_address





More information about the spug-list mailing list