RE: How does ZOMBIE/defunct affect the system?

2002-08-19 Thread Sudarshan Raghavan
On Wed, 14 Aug 2002, Bob Showalter wrote: > > > >> > > > >>use POSIX ":sys_wait_h"; > > > >>#... > > > >>do { > > > >>$kid = waitpid(-1,&WNOHANG); > > > >>} until $kid == -1; > > > > > > > >

Re: How does ZOMBIE/defunct affect the system?

2002-08-14 Thread Steve Grazzini
Ahmed Moustafa <[EMAIL PROTECTED]> wrote: > From: "Bob Showalter" <[EMAIL PROTECTED]> [ waitpid() in tight loop ] >> This example is straight out of perldoc -f waitpid, but if it's >> used "as-is", I don't see the point. Why do a non-blocking wait, >> when the do loop effectively blocks the pro

Re: How does ZOMBIE/defunct affect the system?

2002-08-14 Thread Ahmed Moustafa
- Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Ahmed Moustafa'" <[EMAIL PROTECTED]>; "Perl beginners" <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 10:08 AM Subject: RE: How does ZOMBIE/defunct af

RE: How does ZOMBIE/defunct affect the system?

2002-08-14 Thread Bob Showalter
> -Original Message- > From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 11:45 AM > To: Bob Showalter; 'Sudarshan Raghavan'; Perl beginners > Subject: Re: How does ZOMBIE/defunct affect the system? > > ... > All I need t

Re: How does ZOMBIE/defunct affect the system?

2002-08-14 Thread Ahmed Moustafa
- Original Message - From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Sudarshan Raghavan'" <[EMAIL PROTECTED]>; "Perl beginners" <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 5:45 AM Subject: RE: How does ZOMBIE/defunct af

RE: How does ZOMBIE/defunct affect the system?

2002-08-14 Thread Bob Showalter
> -Original Message- > From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 7:49 AM > To: Perl beginners > Subject: Re: How does ZOMBIE/defunct affect the system? > > > On Tue, 13 Aug 2002, Ahmed Moustafa wrote: > > > A

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, Ahmed Moustafa wrote: > Ahmed Moustafa wrote: > > Drieux wrote: > > > >> > >> > >>use POSIX ":sys_wait_h"; > >>#... > >>do { > >>$kid = waitpid(-1,&WNOHANG); > >>} until $

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
Ahmed Moustafa wrote: > Drieux wrote: > >> >> >>use POSIX ":sys_wait_h"; >>#... >>do { >>$kid = waitpid(-1,&WNOHANG); >>} until $kid == -1; > > > Does the execution of the program wait to all

RE: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Kipp, James
ilto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 1:35 PM > To: Chas Owens > Cc: [EMAIL PROTECTED] > Subject: Re: How does ZOMBIE/defunct affect the system? > > > > Proc::Daemon is a pure Perl module, so it is a perfect Perl > example of > > how to create a daem

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
> Proc::Daemon is a pure Perl module, so it is a perfect Perl example of > how to create a daemon in Unix. Is there a particular reason you cannot > use Proc::Daemon (uncooperative sysadmins)? Exactly, also, I already have something in place and I need to fix it. -- To unsubscribe, e-mail: [

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 09:01 , Kipp, James wrote: [..] > methinks we covered this ground before. will implement the start, stop > like > an rc script, but i don't need to deal with a config file in this case. > Thanks I think that you and I have gone around that mark, but thought it be

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 07:33 , Kipp, James wrote: [..] >> a couple of basic concerns. >> >> a) your redirect of STDERR, STDOUT >> means that you will be losing all of your [..] > Hopefully there won't be any :-). Your right, i was aiming to change that. as we say -

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Chas Owens
On Tue, 2002-08-13 at 10:17, Ahmed Moustafa wrote: > Drieux wrote: > > > > On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > > > >> Drieux wrote: > >> > >>> what you want is > >>> how do I create a demon process > >>> that will be able to run independent of my programme: > >>> c

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
Drieux wrote: > > On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > >> Drieux wrote: >> >>> what you want is >>> how do I create a demon process >>> that will be able to run independent of my programme: >>> cf: >>> http://www.wetware.com/drieux/pbl/Sys/daemon1.txt >> >> >> If it

RE: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Kipp, James
> > If it's not possible to use Proc::Daemon, what would be the other > options, please? > > Your help will appreciated so much. > I also had to roll my own daemon. actually i would like to here suggestions from drieux or anyone on how i can improve this. Proc::Daemon is not an option for me

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > Drieux wrote: >> what you want is >> how do I create a demon process >> that will be able to run independent of my programme: >> cf: >> http://www.wetware.com/drieux/pbl/Sys/daemon1.txt > > If it's not possible to use Proc::Daemo

Re: How does ZOMBIE/defunct affect the system?

2002-08-12 Thread Ahmed Moustafa
Drieux wrote: > what you want is > > how do I create a demon process > > that will be able to run independent of my programme: > > cf: > > http://www.wetware.com/drieux/pbl/Sys/daemon1.txt If it's not possible to use Proc::Daemon, what would be the other options, please? Your help will

RE: How does ZOMBIE/defunct affect the system?

2002-08-12 Thread Kipp, James
the zombies may hang around until next reboot. always good to use that code to reap the zombies > -Original Message- > From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 10, 2002 12:14 AM > To: [EMAIL PROTECTED] > Subject: How does ZOMBIE/defunct affect the system? >

Re: How does ZOMBIE/defunct affect the system?

2002-08-10 Thread drieux
On Saturday, August 10, 2002, at 12:35 , Ahmed Moustafa wrote: [..] > > Is there a way that I can fork a process and let the execution go without > waiting for the forked process to finish, please? > [..] what you want is how do I create a demon process that will be able to run indepe

Re: How does ZOMBIE/defunct affect the system?

2002-08-10 Thread Ahmed Moustafa
Drieux wrote: > > >use POSIX ":sys_wait_h"; >#... >do { >$kid = waitpid(-1,&WNOHANG); >} until $kid == -1; Does the execution of the program wait to all the forked processes to terminate? T

Re: How does ZOMBIE/defunct affect the system?

2002-08-10 Thread drieux
On Friday, August 9, 2002, at 09:14 , Ahmed Moustafa wrote: > If a Perl program generates ZOMBIE/defunct processes, how does that > affect the system? [..] theoretically each process takes up an index in the process table, and hence one can reach the moment where the kernel can not fork anot