aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-01 22:27:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-01 22:27:17 +0000
commit191c6b97c84a4680eb04ff42a4d420eac0d8d8e8 (patch)
treee661ba8e2525b53b59e5b8cfd2318dd36ac345a8 /daemon.c
parent9a9467cafe1c27290eac02c0a6bb6baa480a5096 (diff)
downloadfetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.tar.gz
fetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.tar.bz2
fetchmail-191c6b97c84a4680eb04ff42a4d420eac0d8d8e8.zip
Return of the dancing progress dots.
svn path=/trunk/; revision=2369
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon.c b/daemon.c
index 75c39486..67ae0270 100644
--- a/daemon.c
+++ b/daemon.c
@@ -109,7 +109,7 @@ daemonize (const char *logfile, void (*termhook)(int))
group leader */
if ((childpid = fork()) < 0) {
- report(stderr, errno, "fork");
+ report(stderr, errno, "fork\n");
return(PS_IOERR);
}
else if (childpid > 0)
@@ -122,7 +122,7 @@ daemonize (const char *logfile, void (*termhook)(int))
#if defined(HAVE_SETSID) /* POSIX */
/* POSIX makes this soooo easy to do */
if (setsid() < 0) {
- report(stderr, errno, "setsid");
+ report(stderr, errno, "setsid\n");
return(PS_IOERR);
}
#elif defined(SIGTSTP) /* BSD */
@@ -144,7 +144,7 @@ daemonize (const char *logfile, void (*termhook)(int))
/* lose controlling tty */
signal(SIGHUP, SIG_IGN);
if ((childpid = fork()) < 0) {
- report(stderr, errno, "fork");
+ report(stderr, errno, "fork\n");
return(PS_IOERR);
}
else if (childpid > 0) {
@@ -168,7 +168,7 @@ nottyDetach:
/* Reopen stdin descriptor on /dev/null */
if ((fd = open("/dev/null", O_RDWR)) < 0) { /* stdin */
- report(stderr, errno, "open: /dev/null");
+ report(stderr, errno, "open: /dev/null\n");
return(PS_IOERR);
}
@@ -176,11 +176,11 @@ nottyDetach:
fd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666); /* stdout */
else
if (dup(fd) < 0) { /* stdout */
- report(stderr, errno, "dup");
+ report(stderr, errno, "dup\n");
return(PS_IOERR);
}
if (dup(fd) < 0) { /* stderr */
- report(stderr, errno, "dup");
+ report(stderr, errno, "dup\n");
return(PS_IOERR);
}