On Wed, 14 Aug 2002, Bob Showalter wrote:
> > > >>
> > > >>use POSIX ":sys_wait_h";
> > > >>#...
> > > >>do {
> > > >>$kid = waitpid(-1,&WNOHANG);
> > > >>} until $kid == -1;
> > > >
> > > >
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
- 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
> -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
- 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
> -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
On Tue, 13 Aug 2002, Ahmed Moustafa wrote:
> Ahmed Moustafa wrote:
> > Drieux wrote:
> >
> >>
> >>
> >>use POSIX ":sys_wait_h";
> >>#...
> >>do {
> >>$kid = waitpid(-1,&WNOHANG);
> >>} until $
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
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
> 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: [
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
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 -
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
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
>
> 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
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
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
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?
>
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
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
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
21 matches
Mail list logo