summaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail/src/daemon.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-01-27 07:37:00 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-01-27 07:37:00 +0000
commit52c4d6f5d6bb1ffd8b30c0429fc18d371856a062 (patch)
treecf805785dbb5fe7d8751a367329bb6dfd0bb2ac0 /usr.sbin/sendmail/src/daemon.c
parent33cdb0aebd861499f480d52422eeffcd644e2164 (diff)
Notes
Diffstat (limited to 'usr.sbin/sendmail/src/daemon.c')
-rw-r--r--usr.sbin/sendmail/src/daemon.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/sendmail/src/daemon.c b/usr.sbin/sendmail/src/daemon.c
index c8516fc48a48..bd8a9146de2e 100644
--- a/usr.sbin/sendmail/src/daemon.c
+++ b/usr.sbin/sendmail/src/daemon.c
@@ -37,9 +37,9 @@
#ifndef lint
#ifdef DAEMON
-static char sccsid[] = "@(#)daemon.c 8.156 (Berkeley) 12/1/96 (with daemon mode)";
+static char sccsid[] = "@(#)daemon.c 8.159 (Berkeley) 1/14/97 (with daemon mode)";
#else
-static char sccsid[] = "@(#)daemon.c 8.156 (Berkeley) 12/1/96 (without daemon mode)";
+static char sccsid[] = "@(#)daemon.c 8.159 (Berkeley) 1/14/97 (without daemon mode)";
#endif
#endif /* not lint */
@@ -165,7 +165,8 @@ getrequests(e)
(void) setsignal(SIGCHLD, reapchild);
/* write the pid to the log file for posterity */
- pidf = fopen(PidFile, "w");
+ pidf = safefopen(PidFile, O_WRONLY|O_CREAT|O_TRUNC, 0644,
+ SFF_NOSLINK|SFF_ROOTOK|SFF_REGONLY|SFF_CREAT);
if (pidf != NULL)
{
extern char *CommandLineArgs;
@@ -316,7 +317,7 @@ getrequests(e)
if (pid == 0)
{
char *p;
- extern void intsig();
+ extern SIGFUNC_DECL intsig __P((int));
FILE *inchannel, *outchannel;
bool nullconn;