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:
parent
dc41b3872c
commit
29f5709c53
@ -94,6 +94,16 @@ int main(int argc, char **argv) {
|
|||||||
perror("fcntl");
|
perror("fcntl");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
/* fork into background */
|
||||||
|
switch (fork()) {
|
||||||
|
case -1:
|
||||||
|
perror("fork");
|
||||||
|
exit(1);
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
signal(SIGCHLD, SIG_IGN);
|
signal(SIGCHLD, SIG_IGN);
|
||||||
register_exec_func(do_exec);
|
register_exec_func(do_exec);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user