summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2000-09-21 16:57:10 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2000-09-21 16:57:10 +0000
commit8398c7337dd7e2910236403f7dc1b4032844e171 (patch)
treeecfcc17e450bbd185f4a64e0a973799ee2488c9e
parent30f36f3aa69470cf73412c7b1c209a0081bf7bf7 (diff)
downloadtinyproxy-8398c7337dd7e2910236403f7dc1b4032844e171.tar.gz
tinyproxy-8398c7337dd7e2910236403f7dc1b4032844e171.zip
There is no LOG_EMERG level, so changed to LOG_CRIT.
-rw-r--r--src/tinyproxy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tinyproxy.c b/src/tinyproxy.c
index 496739f..e0d05da 100644
--- a/src/tinyproxy.c
+++ b/src/tinyproxy.c
@@ -1,4 +1,4 @@
-/* $Id: tinyproxy.c,v 1.4 2000-09-12 00:03:53 rjkaes Exp $
+/* $Id: tinyproxy.c,v 1.5 2000-09-21 16:57:10 rjkaes Exp $
*
* The initialise routine. Basically sets up all the initial stuff (logfile,
* listening socket, config options, etc.) and then sits there and loops
@@ -244,7 +244,7 @@ int main(int argc, char **argv)
}
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
- log(LOG_EMERG, "Could not set SIGPIPE\n");
+ log(LOG_CRIT, "Could not set SIGPIPE\n");
exit(EX_OSERR);
}
@@ -257,7 +257,7 @@ int main(int argc, char **argv)
* Start listening on the selected port.
*/
if (thread_listening_sock(config.port) < 0) {
- log(LOG_EMERG, "Problem creating listening socket");
+ log(LOG_CRIT, "Problem creating listening socket");
exit(EX_OSERR);
}
@@ -303,11 +303,11 @@ int main(int argc, char **argv)
*/
log(LOG_INFO, "Setting the various signals.");
if (signal(SIGTERM, takesig) == SIG_ERR) {
- log(LOG_EMERG, "Could not set SIGTERM\n");
+ log(LOG_CRIT, "Could not set SIGTERM\n");
exit(EX_OSERR);
}
if (signal(SIGHUP, takesig) == SIG_ERR) {
- log(LOG_EMERG, "Could not set SIGHUP\n");
+ log(LOG_CRIT, "Could not set SIGHUP\n");
exit(EX_OSERR);
}