qrexec: fork into background after setting up qrexec-fork-server socket

This allows qubes-session signalling dom0 when session is really ready.
This commit is contained in:
Marek Marczykowski-Górecki 2015-02-22 03:12:54 +01:00
parent dc41b3872c
commit 29f5709c53

View File

@ -94,6 +94,16 @@ int main(int argc, char **argv) {
perror("fcntl");
exit(1);
}
/* fork into background */
switch (fork()) {
case -1:
perror("fork");
exit(1);
case 0:
break;
default:
exit(0);
}
signal(SIGCHLD, SIG_IGN);
register_exec_func(do_exec);