Re: Howto catch a signal and continue afterwards

2010-02-18 Thread C.DeRykus
On Feb 17, 5:08 am, shawnhco...@gmail.com (Shawn H Corey) wrote: > C.DeRykus wrote: > > No, you don't need to do that.  If the child is interrupted by an > > uncaught > > signal > > I'm not talking about the child being interrupted; I'm talking about the > parent. > > As I said, the Perl documentat

Re: Howto catch a signal and continue afterwards

2010-02-17 Thread Matthias Meyer
C.DeRykus wrote: > On Feb 15, 11:59 am, matthias.me...@gmx.li (Matthias Meyer) wrote: >> Hi group, >> >> I try to catch a signal, write out some statistics about my running >> perl program and continue afterwards with the program. >> >> use strict; >> no  utf8; >> use MyProgram::Lib; >> use Encode

Re: Howto catch a signal and continue afterwards

2010-02-17 Thread Shawn H Corey
C.DeRykus wrote: > No, you don't need to do that. If the child is interrupted by an > uncaught > signal I'm not talking about the child being interrupted; I'm talking about the parent. As I said, the Perl documentation is not clear if it's wait command filters out signals not about its children.

Re: Howto catch a signal and continue afterwards

2010-02-16 Thread C.DeRykus
On Feb 16, 5:40 am, shawnhco...@gmail.com (Shawn H Corey) wrote: > C.DeRykus wrote: > > On Feb 15, 12:35 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: > >> Normally a program continues but if it is waiting or sleeping, it > >> continues after the command.  You have to redo the command until it >

Re: Howto catch a signal and continue afterwards

2010-02-16 Thread Shawn H Corey
C.DeRykus wrote: > On Feb 15, 12:35 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: >> Normally a program continues but if it is waiting or sleeping, it >> continues after the command. You have to redo the command until it >> terminates correctly. Example: waiting for a child process: >> >> my

Re: Howto catch a signal and continue afterwards

2010-02-16 Thread C.DeRykus
On Feb 15, 12:35 pm, shawnhco...@gmail.com (Shawn H Corey) wrote: > Matthias Meyer wrote: > > Hi group, > > > I try to catch a signal, write out some statistics about my running > > perl program and continue afterwards with the program. > > > use strict; > > no  utf8; > > use MyProgram::Lib; > > us

Re: Howto catch a signal and continue afterwards

2010-02-16 Thread C.DeRykus
On Feb 15, 11:59 am, matthias.me...@gmx.li (Matthias Meyer) wrote: > Hi group, > > I try to catch a signal, write out some statistics about my running > perl program and continue afterwards with the program. > > use strict; > no  utf8; > use MyProgram::Lib; > use Encode; > use Socket; > use File::P

Re: Howto catch a signal and continue afterwards

2010-02-15 Thread Shawn H Corey
Matthias Meyer wrote: > Hi group, > > I try to catch a signal, write out some statistics about my running > perl program and continue afterwards with the program. > > use strict; > no utf8; > use MyProgram::Lib; > use Encode; > use Socket; > use File::Path; > use File::Find; > use Getopt::Std; >

Howto catch a signal and continue afterwards

2010-02-15 Thread Matthias Meyer
Hi group, I try to catch a signal, write out some statistics about my running perl program and continue afterwards with the program. use strict; no utf8; use MyProgram::Lib; use Encode; use Socket; use File::Path; use File::Find; use Getopt::Std; die("MyProgram::Lib->new failed\n") if ( !(my $in