mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Avoid "Stray process..." warning messages
This commit is contained in:
committed by
Bjorn Winckler
parent
62b5aae721
commit
7ae32a1bef
@@ -1962,6 +1962,12 @@ executeInLoginShell(NSString *path, NSArray *args)
|
||||
if (close(ds[1]) == -1) exit(255);
|
||||
if (dup2(ds[0], 0) == -1) exit(255);
|
||||
|
||||
// Without the following call warning messages like this appear on the
|
||||
// console:
|
||||
// com.apple.launchd[69] : Stray process with PGID equal to this
|
||||
// dead job: PID 1589 PPID 1 Vim
|
||||
setsid();
|
||||
|
||||
execv(shellPath, shellArgv);
|
||||
|
||||
// Never reached unless execv fails
|
||||
|
||||
Reference in New Issue
Block a user