Re: SIGZERO

2004-09-24 Thread Errin Larsen
On Fri, 24 Sep 2004 11:52:19 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am a beginner, but I love to see all the knowledge transfer so keep the > moderate to difficult questions coming! > <> I'm like you, Derek! I love just reading this stuff. Satisfies some inner-geek need I have

Re: SIGZERO

2004-09-24 Thread Wiggins d Anconia
> On Fri, 24 Sep 2004 10:34:50 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > > On Fri, 24 Sep 2004 17:20:44 +0200, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > > From: Errin Larsen <[EMAIL PROTECTED]> > > <> > > > > > > how do I wait() or waitpid() on more than one process? don't both of >

Re: SIGZERO

2004-09-24 Thread DBSMITH
To: Jenda Krynicky <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject: Re: SIGZERO On Fri, 24 Sep 2004 10:34:50 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > On Fri, 24 Sep 2004 17:20:44 +0200, Jenda Krynicky <[EMAIL PROTECTED]> wrote: >

Re: SIGZERO

2004-09-24 Thread Errin Larsen
On Fri, 24 Sep 2004 10:34:50 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > On Fri, 24 Sep 2004 17:20:44 +0200, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > From: Errin Larsen <[EMAIL PROTECTED]> <> > > how do I wait() or waitpid() on more than one process? don't both of > those make the wa

Re: SIGZERO

2004-09-24 Thread Wiggins d Anconia
> From: Errin Larsen <[EMAIL PROTECTED]> > > See that ""?! How did my process get a status? Is > > that a Solaris-fancy way of saying "zombie-child"? > > I believe so. I do as well. > > > The above explains > > why my (kill 0 => $pid) isn't working the way I expect, but How can I > > kill

Re: SIGZERO

2004-09-24 Thread Errin Larsen
On Fri, 24 Sep 2004 17:20:44 +0200, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > From: Errin Larsen <[EMAIL PROTECTED]> > > See that ""?! How did my process get a status? Is > > that a Solaris-fancy way of saying "zombie-child"? > > I believe so. > > > The above explains > > why my (kill 0 => $

Re: SIGZERO

2004-09-24 Thread Jenda Krynicky
From: Errin Larsen <[EMAIL PROTECTED]> > See that ""?! How did my process get a status? Is > that a Solaris-fancy way of saying "zombie-child"? I believe so. > The above explains > why my (kill 0 => $pid) isn't working the way I expect, but How can I > kill the kid. The child process final

Re: SIGZERO

2004-09-24 Thread Errin Larsen
Ok, I learned something else ... When I type: kill -9 on the command line, It's not actually killing the process. Let me explain. My script starts 3 others and then stays around watching them. So, when I run it, I get this: # ps -ef | grep dummy user1 18000 1 0 10:04:22 ?0:00 dummy_mon

RE: SIGZERO

2004-09-24 Thread Ed Christian
Errin Larsen wrote: > On Fri, 24 Sep 2004 10:31:36 -0400, Ed Christian <[EMAIL PROTECTED]> > wrote: >> Errin Larsen wrote: >>> Hi Perlers, >>> >> >> >> >>> >>> if( kill 0 => $pid ) { >>> >> >> >> >> Forgive me if I presume too much, but shouldn't the above be: >> >> if( kill 0, $pid ) {

Re: SIGZERO

2004-09-24 Thread Errin Larsen
On Fri, 24 Sep 2004 10:31:36 -0400, Ed Christian <[EMAIL PROTECTED]> wrote: > Errin Larsen wrote: > > Hi Perlers, > > > > > > > > > if( kill 0 => $pid ) { > > > > > > Forgive me if I presume too much, but shouldn't the above be: > > if( kill 0, $pid ) { > > perldoc -f kill > Jenda is corr

RE: SIGZERO

2004-09-24 Thread Jenda Krynicky
From: "Ed Christian" <[EMAIL PROTECTED]> > Errin Larsen wrote: > > Hi Perlers, > > > > > > > > > if( kill 0 => $pid ) { > > > > > > Forgive me if I presume too much, but shouldn't the above be: > > if( kill 0, $pid ) { Those two are equivalent. perl -MO=Deparse -e "kill 0 => $pid

RE: SIGZERO

2004-09-24 Thread Ed Christian
Errin Larsen wrote: > Hi Perlers, > > > if( kill 0 => $pid ) { > Forgive me if I presume too much, but shouldn't the above be: if( kill 0, $pid ) { perldoc -f kill -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SIGZERO

2004-09-24 Thread Errin Larsen
On Fri, 24 Sep 2004 09:17:58 -0500, Errin Larsen <[EMAIL PROTECTED]> wrote: > Hi Perlers, > > I'm trying to check on the status of a process by sending a SIGZERO to > it with kill(). This SHOULD (according to the docs I've been reading) > return false if the proc

SIGZERO

2004-09-24 Thread Errin Larsen
Hi Perlers, I'm trying to check on the status of a process by sending a SIGZERO to it with kill(). This SHOULD (according to the docs I've been reading) return false if the process died. But mine is not. It always returns true. if( kill 0 => $pid ) { print "the proces