Closed
Description
The following occurs for me on Mac OSX 10.9.
// child.rs
fn main() {
for _ in range::<uint>(0, 1000) {
error!("hello?");
}
}
// parent.rs
fn main () {
use std::io::process;
let config = process::ProcessConfig {
program : "./child",
args : [],
env : None,
cwd : None,
io : []
};
match process::Process::new(config) {
Some(ref mut p) => println!("{}", p.wait()),
None => println("failed to start child")
}
}
When I run ./parent
, I expect the output to be "exit code: 0". Instead, I see an error signal, and not always the same one:
$ ./parent
signal: 6
$ ./parent
signal: 4
$ ./parent
signal: 6
$ ./parent
signal: 6
$ ./parent
signal: 10
Metadata
Metadata
Assignees
Labels
No labels