shell: fix incorrect return value on shc
This commit is contained in:
parent
42a017978a
commit
d3b6c29db7
1 changed files with 1 additions and 1 deletions
|
|
@ -181,5 +181,5 @@ void ztd::shc::run_process(shc* p)
|
|||
|
||||
p->running = false;
|
||||
p->wp_finish.notify_all();
|
||||
p->return_value = ztd::pclose2(stream, pid);
|
||||
p->return_value = WEXITSTATUS(ztd::pclose2(stream, pid));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue