[gnome-keyring/wip/fork-fixes: 3/3] fixup! daemon: fork before threads are spawned
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/fork-fixes: 3/3] fixup! daemon: fork before threads are spawned
- Date: Fri, 16 Oct 2015 18:28:51 +0000 (UTC)
commit 59b86fd6f1e2afb6674e9e0933a29cebeea13264
Author: Ray Strode <rstrode redhat com>
Date: Fri Oct 16 14:27:42 2015 -0400
fixup! daemon: fork before threads are spawned
daemon/gkd-main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c
index db32fa2..61ce5d4 100644
--- a/daemon/gkd-main.c
+++ b/daemon/gkd-main.c
@@ -662,6 +662,10 @@ fork_and_print_environment (void)
pid_t pid;
int wakeup_fds[2] = { -1, -1 };
+ if (run_foreground) {
+ return -1;
+ }
+
g_unix_open_pipe (wakeup_fds, FD_CLOEXEC, NULL);
pid = fork ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]