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
This commit is contained in:
theraven 2010-04-07 18:37:54 +00:00
parent 25ff8b3385
commit 92249b682a

View file

@ -1484,7 +1484,7 @@ GSPrivateCheckTasks()
}
edesc = [hdl fileDescriptor];
pid = fork();
pid = vfork();
if (pid < 0)
{
[NSException raise: NSInvalidArgumentException