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

This commit is contained in:
李通洲 committed 2023-01-14 01:27:54 +08:00
1 parent e076097a7c
commit b739d94f23
7 files changed
+114 -2

No files matched your search

+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";
}