Subject: | IPC::Cmd error reporting |
Date: | Mon, 2 Jun 2008 14:35:49 +0100 |
To: | <bug-ipc-cmd [...] rt.cpan.org> |
From: | "Ed Avis" <eda [...] waniasset.com> |
The documentation for IPC::Cmd::run() shows that it returns an 'ok' flag and an error code, which is the exit status of the command. But what happens if the command was killed by a signal?
If I might put two related things in the bug report, it would be useful to have a 'checked' mode of run, which would throw an exception if anything went wrong in running the command (fork() or exec() failed, command killed with a signal, or exited with nonzero status), and the exception message would say what the problem was.
--
Ed Avis <eda@waniasset.com>
Show quoted text
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________