projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab537f
)
Only send USR1 signal when daemonized.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 3 Jun 2009 18:43:31 +0000
(18:43 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 3 Jun 2009 18:43:31 +0000
(18:43 +0000)
shibd/shibd.cpp
patch
|
blob
|
history
diff --git
a/shibd/shibd.cpp
b/shibd/shibd.cpp
index
122dc54
..
5def132
100644
(file)
--- a/
shibd/shibd.cpp
+++ b/
shibd/shibd.cpp
@@
-384,8
+384,10
@@
int main(int argc, char *argv[])
}
\r
\r
// Signal our parent.
\r
- pid_t ppid = getppid();
\r
- kill(ppid, SIGUSR1);
\r
+ if (daemonize) {
\r
+ pid_t ppid = getppid();
\r
+ kill(ppid, SIGUSR1);
\r
+ }
\r
\r
// Run the listener.
\r
if (!listener->run(&shibd_shutdown)) {
\r