summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-30 01:46:38 +0000
committerJeremy Allison <jra@samba.org>2001-12-30 01:46:38 +0000
commitbb81e23e176ec7dfe0111b5aa2946a51239ef3b9 (patch)
treec1df8492aba552c718d407988ab146e37dc4b3e6 /source3/nsswitch
parent98010a076797f4d05d8c9bff45e65c076f30da3a (diff)
downloadsamba-bb81e23e176ec7dfe0111b5aa2946a51239ef3b9.tar.gz
samba-bb81e23e176ec7dfe0111b5aa2946a51239ef3b9.tar.bz2
samba-bb81e23e176ec7dfe0111b5aa2946a51239ef3b9.zip
When running interactive we want to set our own process group for
signal management. Jeremy. (This used to be commit fffae94dd5699f44c0b1c8081587deafd89b3fc0)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 9bbd88653c..a877bf9e0a 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -822,6 +822,15 @@ int main(int argc, char **argv)
if (!interactive)
become_daemon();
+#if HAVE_SETPGID
+ /*
+ * If we're interactive we want to set our own process group for
+ * signal management.
+ */
+ if (interactive)
+ setpgid( (pid_t)0, (pid_t)0);
+#endif
+
load_interfaces();
secrets_init();