summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2007-11-01 15:41:11 -0400
committerAdam Jackson <ajax@redhat.com>2007-11-02 11:54:16 -0400
commitf01e149d1af14ef9ee0e8a6743ab6a08f3bb677c (patch)
tree6517340e87eb77d6676d63fddbf9c719da23543b /dix
parenta2ee5fe0c4e863c7ff4f644e5ac86f2793903103 (diff)
Move SIGUSR1 notification as late as possible.
If we inherited a signal mask from the parent process that ignores SIGUSR1, then we will send SIGUSR1 to the parent to indicate when we're ready to accept connections. Unfortunately, we send this notification way too early, right after creating the sockets rather than just before entering the main loop. Move it to just before Dispatch() so we're not lying quite so much.
Diffstat (limited to 'dix')
-rw-r--r--dix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/main.c b/dix/main.c
index 31e291b02..e5c557800 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -449,6 +449,8 @@ main(int argc, char *argv[], char *envp[])
}
}
+ NotifyParentProcess();
+
Dispatch();
/* Now free up whatever must be freed */