From 92249b682ac90fa875fb88a55214299b602276b2 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 7 Apr 2010 18:37:54 +0000 Subject: [PATCH] Make NSTask use vfork() instead of fork(). Not sure why this wasn't done already - you should only use fork() when you're creating a child process that isn't calling execv() immediately afterwards. This should make creating an NSTask a lot faster (especially on Windows where fork() is implemented with some horribly complex hacks but vfork just sets a few flags and calls setjmp()). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30101 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTask.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSTask.m b/Source/NSTask.m index 180111ded..cf282b4ad 100644 --- a/Source/NSTask.m +++ b/Source/NSTask.m @@ -1484,7 +1484,7 @@ GSPrivateCheckTasks() } edesc = [hdl fileDescriptor]; - pid = fork(); + pid = vfork(); if (pid < 0) { [NSException raise: NSInvalidArgumentException