From 190ae74c946d74f01f6543a87480582ed275172c Mon Sep 17 00:00:00 2001 From: Ben Schmidt Date: Sat, 22 Nov 2008 14:32:12 +0100 Subject: [PATCH] Avoid "Stray process..." warning messages --- src/MacVim/MMAppController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index db7fa108..91307d9b 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -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 -- 2.11.4.GIT