Clean version. filterblanklines functioning now.
This commit is contained in:
1 parent
632e6979ba
commit
e1be28e53b
5 files changed
+20
-19
No files matched your search
+4
-3
@@ -24,7 +24,8 @@ namespace jet {
|
||||
}
|
||||
argv[ix] == NULL;
|
||||
pipe(fdo);
|
||||
if(pid != fork()) {
|
||||
pid = fork();
|
||||
if(pid == 0) {
|
||||
close(fdo[0]);
|
||||
dup2(fdo[1], 1);
|
||||
if(variableDefined("input")) {
|
||||
@@ -38,7 +39,7 @@ namespace jet {
|
||||
}
|
||||
close(fdi[0]);
|
||||
dup2(fdi[0], 0);
|
||||
}
|
||||
}
|
||||
rc = execve(variables["pgm"].c_str(), argv, NULL);
|
||||
close(fdo[1]);
|
||||
std::cout << "rc: " << rc << std::endl;
|
||||
@@ -49,7 +50,7 @@ namespace jet {
|
||||
global.variables[variables["name"]].read(fdo[0]);
|
||||
else
|
||||
out.read(fdo[0]);
|
||||
waitpid(pid, &status,0);
|
||||
waitpid(pid, &status, 0);
|
||||
std::cout << "status: " << status << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user