diff options
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/task.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libnative/task.rs b/src/libnative/task.rs index 5a1ef5c836e..9b6a26291a1 100644 --- a/src/libnative/task.rs +++ b/src/libnative/task.rs @@ -55,11 +55,15 @@ pub fn spawn(f: proc()) { pub fn spawn_opts(opts: TaskOpts, f: proc()) { let TaskOpts { watched: _watched, - notify_chan, name, stack_size + notify_chan, name, stack_size, + logger, stderr, stdout, } = opts; let mut task = ~Task::new(); task.name = name; + task.logger = logger; + task.stderr = stderr; + task.stdout = stdout; match notify_chan { Some(chan) => { let on_exit = proc(task_result) { chan.send(task_result) }; |
