Use more portable fork for vfork.

This commit is contained in:
Johns 2014-10-16 12:54:21 +02:00
parent ac1d5250c8
commit 46e9f23355
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
User johns User johns
Date: Date:
Use more portable fork for vfork.
Fix crash with VA-API vdpau backend. Fix crash with VA-API vdpau backend.
User mini73 User mini73

View File

@ -3092,7 +3092,7 @@ static void StartXServer(void)
Debug(3, "x-setup: Starting X server '%s' '%s'\n", args[0], Debug(3, "x-setup: Starting X server '%s' '%s'\n", args[0],
X11ServerArguments); X11ServerArguments);
// fork // fork
if ((pid = vfork())) { // parent if ((pid = fork())) { // parent
X11ServerPid = pid; X11ServerPid = pid;
Debug(3, "x-setup: Started x-server pid=%d\n", X11ServerPid); Debug(3, "x-setup: Started x-server pid=%d\n", X11ServerPid);