diff options
author | tb <tb@cvs.openbsd.org> | 2016-01-11 19:26:05 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2016-01-11 19:26:05 +0000 |
commit | eafc50dc848b129c0b1826f0425ffb07c296f54c (patch) | |
tree | dfe809d093e73419e335b2cc26d3e85cc725c7fe /usr.bin/newsyslog | |
parent | 25af72e625c9c48966b231042be3873d7312fc17 (diff) |
ajacoutot@ reported seeing
newsyslog: preposterous process number in pid file: /var/run/syslog.pid
in his log since syslogd ran as pid 2.
Nowadays only init runs with a reserved low pid, so decrease MIN_PID
from 4 to 2, as suggested by espie@.
ok kettenis@
Diffstat (limited to 'usr.bin/newsyslog')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index 7c40c99869a..c0fa180de9d 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.99 2015/12/09 19:28:34 mmcc Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.100 2016/01/11 19:26:04 tb Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -117,7 +117,7 @@ #define CE_FOLLOW 0x10 /* Follow symbolic links */ #define CE_TRIMAT 0x20 /* Trim at a specific time */ -#define MIN_PID 4 /* Don't touch pids lower than this */ +#define MIN_PID 2 /* Don't touch pids lower than this */ #define MIN_SIZE 256 /* Don't rotate if smaller (in bytes) */ #define DPRINTF(x) do { if (verbose) printf x ; } while (0) |