From eafc50dc848b129c0b1826f0425ffb07c296f54c Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 11 Jan 2016 19:26:05 +0000 Subject: 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@ --- usr.bin/newsyslog/newsyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/newsyslog') 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 @@ -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) -- cgit v1.2.3