mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Use default SIGCHLD handler in Vim processes
This commit is contained in:
committed by
Bjorn Winckler
parent
616f845128
commit
e4c49238bd
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user