mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 17:28:59 +00:00
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:
parent
25ff8b3385
commit
92249b682a
1 changed files with 1 additions and 1 deletions
|
@ -1484,7 +1484,7 @@ GSPrivateCheckTasks()
|
|||
}
|
||||
edesc = [hdl fileDescriptor];
|
||||
|
||||
pid = fork();
|
||||
pid = vfork();
|
||||
if (pid < 0)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
|
|
Loading…
Reference in a new issue