Closed ztdwu closed 8 years ago
Sorry for the late response on this. Yes, this is broken, and I shouldn't be throwing the exception in the child anyway as that's likely to cause issues.
I think 4cb62e5 fixes this. The exception should now be able to be caught in the parent process in the event of a child exec failure.
Cool, looks like that fixed it! :)
For some reason, the exception throw by
process::exec()
cannot be handled intuitively, probably because the library is forking processes.Example 1:
Output 1:
Example 2 (this one has no output):
Is this intended? If so, how do users go about handling the exceptions thrown in by this library?