mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
e13d8c0fb9
commit
561f0d893f
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue