Command: an attempt to add a new module which can run custom shell scripts

This commit is contained in:
李通洲
2023-01-13 19:26:00 +08:00
parent e076097a7c
commit b739d94f23
7 changed files with 114 additions and 2 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ const char* ffProcessAppendStdOut(FFstrbuf* buffer, char* const argv[])
//Parent
close(pipes[1]);
waitpid(childPid, NULL, 0);
ffAppendFDBuffer(pipes[0], buffer);
bool ok = ffAppendFDBuffer(pipes[0], buffer);
close(pipes[0]);
return NULL;
return ok ? NULL : "ffAppendFDBuffer() failed";
}