X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=contrib%2Fbobtoolz%2Fmisc.cpp;h=9e6c2b8b980daecff410d98ffcdc0490360e4496;hb=b0d0b345f70f630411f952d1d65b1e8e75330076;hp=95274655b9c5b466b67c62f2b090d89f643bb1e2;hpb=951a604c7d78876b80383c309fb356712d7262b9;p=xonotic%2Fnetradiant.git diff --git a/contrib/bobtoolz/misc.cpp b/contrib/bobtoolz/misc.cpp index 95274655..9e6c2b8b 100644 --- a/contrib/bobtoolz/misc.cpp +++ b/contrib/bobtoolz/misc.cpp @@ -198,9 +198,9 @@ bool Q_Exec(const char *pCmd, bool bCreateConsole) // NOTE: we could use that to detect when a step finishes. But then it // would not work for remote compiling stuff. // execlp (pCmd, pCmd, NULL); - system(pCmd); + int ret = system(pCmd); printf("system() returned"); - _exit(0); + _exit(ret); break; } return true;