Removing extra slop the AI added
This commit is contained in:
@@ -51,10 +51,6 @@ Tool make_shell_tool(bool safe) {
|
||||
return "Error: pipe creation failed";
|
||||
}
|
||||
|
||||
// Set CLOEXEC so background processes don't inherit the pipe
|
||||
fcntl(pipefd[0], F_SETFD, FD_CLOEXEC);
|
||||
fcntl(pipefd[1], F_SETFD, FD_CLOEXEC);
|
||||
|
||||
pid_t pid = fork();
|
||||
if (pid < 0) {
|
||||
close(pipefd[0]); close(pipefd[1]);
|
||||
|
||||
Reference in New Issue
Block a user