Skip Menu |

This queue is for tickets about the Proc-Daemon CPAN distribution.

Report information
The Basics
Id: 72107
Status: resolved
Priority: 0/
Queue: Proc-Daemon

People
Owner: Nobody in particular
Requestors: marko.nordberg [...] pp.inet.fi
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.14
Fixed in: 0.16



Subject: An exec fails silenty
If the exec of the command given with argument exec_command fails to start (e.g. Permission denied), it will do it totally silently. Because of this it might be very difficult to find the problem. Especially if the command is given in the configuration file by someone who doesn't know this behaviour. I tried modifying line 259 to: exec ($exec_command) or print STDERR "couldn't exec $exec_command: $!"; And it worked for me.
Subject: Re: [rt.cpan.org #72107] AutoReply: An exec fails silenty
Date: Wed, 02 Nov 2011 09:52:34 +0200
To: bug-Proc-Daemon [...] rt.cpan.org
From: Marko Nordberg <Marko.Nordberg [...] pp.inet.fi>
Show quoted text
> I tried modifying line 259 to: > > exec ($exec_command) or print STDERR "couldn't exec $exec_command: $!"; > > And it worked for me.
I switched to using "die" instead of print, because that allows me to define an exception handling mechanism that logs the error in some other place than STDERR that may or may not be available in the child.
Thank you for your suggestion, it was included in 0.16.