Use default SIGCHLD handler in Vim processes

This commit is contained in:
Ben Schmidt
2008-11-17 21:36:36 +01:00
committed by Bjorn Winckler
parent 616f845128
commit e4c49238bd
+5
View File
@@ -1954,6 +1954,11 @@ executeInLoginShell(NSString *path, NSArray *args)
return -1;
} else if (pid == 0) {
// Child process
// We need to undo our zombie avoidance as Vim waits for and needs
// the exit statuses of processes it spawns.
signal(SIGCHLD, SIG_DFL);
if (close(ds[1]) == -1) exit(255);
if (dup2(ds[0], 0) == -1) exit(255);