Core: LocalProcess exit code issue after the Kill fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@10963 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-03-22 08:09:17 +00:00
parent e13d8c0fb9
commit 561f0d893f

View file

@ -55,7 +55,6 @@ void LocalProcess::Free() {
if(epipe[1] >= 0) { close(epipe[1]); epipe[1] = -1; }
if(pid) waitpid(pid, 0, WNOHANG | WUNTRACED);
pid = 0;
exit_code = Null;
#endif
}
@ -71,6 +70,7 @@ bool LocalProcess::DoStart(const char *command, const Vector<String> *arg, bool
LLOG("LocalProcess::Start(\"" << command << "\")");
Kill();
exit_code = Null;
while(*command && (byte)*command <= ' ')
command++;