Re: Is this correct in perl?

2006-04-11 Thread Dr.Ruud
Chad Perrin schreef: > Jay Savage: >> The dreaded reply-to strikes again... > > Did I miss something somewhere that explains why this list uses a > list-reply instead of reply-to? Or use news://nntp.perl.org/perl.beginners (yes, it supports posting too) -- Affijn, Ruud "Gewoon is een tijger

Re: Is this correct in perl?

2006-04-10 Thread Chad Perrin
On Mon, Apr 10, 2006 at 06:01:41AM -0700, Randal L. Schwartz wrote: > > That's why I pointed it out. One advantage of having looked at nearly every > Unix version since V6 in 1977 is that I have a pretty good idea of just how > un-universal "every Unix does $x" actually is. :) It's always nice t

Re: Is this correct in perl?

2006-04-10 Thread Chad Perrin
On Mon, Apr 10, 2006 at 09:55:43AM -0400, Jay Savage wrote: > The dreaded reply-to strikes again... Did I miss something somewhere that explains why this list uses a list-reply instead of reply-to? -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] unix virus: If you're using a unixlike

Re: Is this correct in perl?

2006-04-10 Thread Jay Savage
The dreaded reply-to strikes again... On 4/9/06, Jay Savage <[EMAIL PROTECTED]> wrote: > On 4/9/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > > On Sun, 2006-09-04 at 11:52 -0700, Randal L. Schwartz wrote: > > > Huh? What UNIX system does this? > > > > Ubuntu > > > >

Re: Is this correct in perl?

2006-04-10 Thread Randal L. Schwartz
> "Chad" == Chad Perrin <[EMAIL PROTECTED]> writes: Chad> It may have been added with Debian, but I don't think so. I think it's Chad> at least a Linux-wide behavior. I seem to have a vague recollection of Chad> SuSE doing the same thing, for instance -- though I could just be Chad> misremem

Re: Is this correct in perl?

2006-04-10 Thread Chad Perrin
On Sun, Apr 09, 2006 at 02:59:54PM -0700, Randal L. Schwartz wrote: > > "Shawn" == Shawn H Corey <[EMAIL PROTECTED]> writes: > > Shawn> On Sun, 2006-09-04 at 11:52 -0700, Randal L. Schwartz wrote: > >> Huh? What UNIX system does this? > > Shawn> Ubuntu > > >> From m

Re: Is this correct in perl?

2006-04-09 Thread Jeff Pang
> >You could do it this way: > > END { >kill TERM, keys %childs; > } > >which will kill the child processes regardless of how the program ended; >with the exception of `kill 9`, of course. > No,I think it's not so right here. Under your statement,when all childs exited,they also send a SIGT

Re: Is this correct in perl?

2006-04-09 Thread Randal L. Schwartz
> "Shawn" == Shawn H Corey <[EMAIL PROTECTED]> writes: Shawn> On Sun, 2006-09-04 at 11:52 -0700, Randal L. Schwartz wrote: >> Huh? What UNIX system does this? Shawn> Ubuntu >> From man signal: Shawn>Signal Value Action Comment Shawn>

Re: Is this correct in perl?

2006-04-09 Thread Mr. Shawn H. Corey
On Sun, 2006-09-04 at 11:52 -0700, Randal L. Schwartz wrote: > Huh? What UNIX system does this? Ubuntu >From man signal: Signal Value Action Comment - SIGHUP1

Re: Is this correct in perl?

2006-04-09 Thread Randal L. Schwartz
> ""Mr" == "Mr Shawn H Corey" <[EMAIL PROTECTED]> writes: "Mr> That's why you have to keep accurate track of which processes are yours. "Mr> Most of the time this is not a problem since the PIDs will only get "Mr> recycled some 60_000 processes later. Unless your Perl program runs all "Mr> the

Re: Is this correct in perl?

2006-04-09 Thread Mr. Shawn H. Corey
On Sun, 2006-09-04 at 18:10 +0200, Dr.Ruud wrote: > If the childs stopped earlier, and their PIDs got reused, you would kill > wrong processes in this way. That's why you have to keep accurate track of which processes are yours. Most of the time this is not a problem since the PIDs will only get r

Re: Is this correct in perl?

2006-04-09 Thread Dr.Ruud
Mr. Shawn H. Corey schreef: > You could do it this way: > > END { > kill TERM, keys %childs; > } > > which will kill the child processes regardless of how the program > ended; with the exception of `kill 9`, of course. If the childs stopped earlier, and their PIDs got reused, you would ki

Re: Is this correct in perl?

2006-04-09 Thread Mr. Shawn H. Corey
On Sun, 2006-09-04 at 12:52 +0800, Practical Perl wrote: > Hello, > > When I receive a signal (for example,TERM or INT) from terminal,I want to > get the process exit immediately.But the process have some childs running,so > he would tell the childs to exit before he exit.So I write a kill stateme

Is this correct in perl?

2006-04-08 Thread Practical Perl
Hello, When I receive a signal (for example,TERM or INT) from terminal,I want to get the process exit immediately.But the process have some childs running,so he would tell the childs to exit before he exit.So I write a kill statement (used to kill childs) in parent's signal handler.For example: #