summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-10-11 22:20:23 +0000
committerPeter Jones <pjones@redhat.com>2006-10-11 22:20:23 +0000
commit483ec310fdb84399e6ef04bac5494e60f069ee4c (patch)
tree55c2dcb47e7addf4d776e3deb5d3ce68adb27435 /isys
parent23dc64aa810cef2821633c20fcd06c5a6bea2a70 (diff)
downloadanaconda-483ec310fdb84399e6ef04bac5494e60f069ee4c.tar.gz
anaconda-483ec310fdb84399e6ef04bac5494e60f069ee4c.tar.xz
anaconda-483ec310fdb84399e6ef04bac5494e60f069ee4c.zip
- anaconda (__main__): Only do auditDaemon if we're not in test or
rootpath mode. - isys/auditd.c (audit_daemonize): Don't start a new process group, and do "exit(0)" rather than "return" after recieving SIGTERM.
Diffstat (limited to 'isys')
-rw-r--r--isys/auditd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/isys/auditd.c b/isys/auditd.c
index b4a203870..f2920e0c1 100644
--- a/isys/auditd.c
+++ b/isys/auditd.c
@@ -104,7 +104,6 @@ int audit_daemonize(void) {
for (i = 0; i < getdtablesize(); i++)
close(i);
- setsid();
signal(SIGTTOU, SIG_IGN);
signal(SIGTTIN, SIG_IGN);
signal(SIGTSTP, SIG_IGN);
@@ -119,7 +118,7 @@ int audit_daemonize(void) {
do_auditd(fd);
audit_close(fd);
#endif /* USESELINUX */
- return 0;
+ exit(0);
}
#ifdef STANDALONE