diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-05-18 06:15:39 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-05-18 06:15:39 +0000 |
commit | 4171b2a4482bf178a2eb4d5e3d78327f30f0ee1c (patch) | |
tree | e59364a4ef12c591b69fcc34debb4079b1748ac1 /net/siproxd/files/patch-src__siproxd.c | |
parent | Update to 1.3.1 (diff) |
- Regular update to version 0.5.12.
- use modern USE_RC_SUBR
PR: 96054
Submitted by: Frank W. Josellis (maintainer)
Approved by: lawrance (mentor)
Notes
Notes:
svn path=/head/; revision=162692
Diffstat (limited to 'net/siproxd/files/patch-src__siproxd.c')
-rw-r--r-- | net/siproxd/files/patch-src__siproxd.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/siproxd/files/patch-src__siproxd.c b/net/siproxd/files/patch-src__siproxd.c new file mode 100644 index 000000000000..541b68be06a2 --- /dev/null +++ b/net/siproxd/files/patch-src__siproxd.c @@ -0,0 +1,29 @@ +--- src/siproxd.c.orig Sun Jan 1 21:31:32 2006 ++++ src/siproxd.c Tue May 16 11:39:17 2006 +@@ -177,11 +177,16 @@ + /* + * Init stuff + */ +- INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up"); +- + /* read the config file */ + if (read_config(configfile, config_search) == STS_FAILURE) exit(1); + ++ /* Don't log to stderr if daemonizing is intended. */ ++ if (configuration.daemonize) { ++ log_set_stderr(0); ++ } ++ ++ INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up"); ++ + /* if a debug level > 0 has been given on the commandline use its + value and not what is in the config file */ + if (cmdline_debuglevel != 0) { +@@ -212,7 +217,6 @@ + setsid(); + if (fork()!=0) exit(0); + +- log_set_stderr(0); + INFO("daemonized, pid=%i", getpid()); + } + |