faxrunqd message

Frank D. Cringle (fdc@cliwe.ping.de)
Mon, 20 Jul 1998 13:32:04 +0200


gert@greenie.muc.de (Gert Doering) writes:
> Karl Gerd Schneider wrote:
> > Even when i start /usr/local/sbin/faxrunqd -l /dev/modem from inittab or
> > manually, i get the message "Statement unlikely to be reached at
> > /usr/local/sbin/faxrunqd line 849. (maybe you meant system() when you said
> > exec()?).
> > What does it mean?
> 
> 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";

Alternatively...
 
exec "echo hallo";
die "exec failed: $!\n";

(perl doesn't complain if the next statement ist a die()).

-- 
Frank Cringle,      fdc@cliwe.ping.de
voice: (+49 2304) 467101; fax: 943357