shell: fix incorrect return value on shc

This commit is contained in:
BuildTools 2020-02-04 14:52:22 +01:00
parent 42a017978a
commit d3b6c29db7

View file

@ -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));
}