cleaned up system tag.
This commit is contained in:
1 parent
5a7f7f2d18
commit
78001212f8
2 files changed
+4
-7
No files matched your search
+2
-5
@@ -31,9 +31,9 @@ namespace jet {
|
||||
close(fdi[1]);
|
||||
dup2(fdi[0], 0);
|
||||
}
|
||||
rc = system(variables["cmd"].c_str());
|
||||
system(variables["cmd"].c_str());
|
||||
close(fdo[1]);
|
||||
exit(rc);
|
||||
exit(errno);
|
||||
}
|
||||
close(fdo[1]);
|
||||
if(variableDefined("name"))
|
||||
@@ -41,9 +41,6 @@ namespace jet {
|
||||
else
|
||||
out.read(fdo[0]);
|
||||
waitpid(pid, &status, 0);
|
||||
if(variableDefined("status"))
|
||||
resolveKeyword("status");
|
||||
global.variables[variables["status"]] = (status >> 8 & 255);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user