faxrunqd message
Gert Doering (gert@greenie.muc.de)
Mon, 20 Jul 1998 16:43:33 +0200
Hi,
Frank D. Cringle wrote:
> > It means "I'm smarter than 'perl -w'". Perl assumes that everything
> > after an exec() line must be an error, while I know that exec() can fail
> > under certain circumstances, and have added some code that will report the
> > error...
>
> "To suppress this warning, put the exec() in a block by itself." (perldiag).
>
> { exec "echo hallo" }
> print "Shucks. Process table is full\n";
Ah. Perl *is* smarter than I am, I just didn't realize yet :-)
Will do that. Thanks for pointing out.
> Alternatively...
>
> exec "echo hallo";
> die "exec failed: $!\n";
>
> (perl doesn't complain if the next statement ist a die()).
die won't do, I have to use a well-defined return code, otherwise the
main faxrunqd won't realize what happened.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de