View | Details | Raw Unified | Return to bug 28435
Collapse All | Expand All

(-)newsyslog.8 (-1 / +6 lines)
Lines 280-286 Link Here
280
field is present, a
280
field is present, a
281
.Ar signal_number
281
.Ar signal_number
282
is sent the process id contained in this
282
is sent the process id contained in this
283
file.  This field must start with "/" in order to be recognized
283
file.  If this number is negative, it is treated as (the negative of) 
284
a process group ID and the signal is sent to all members of that 
285
process group.  See the 
286
.Xr kill 2
287
man page for details.
288
This field must start with "/" in order to be recognized
284
properly.
289
properly.
285
.It Ar signal_number
290
.It Ar signal_number
286
This optional field specifies
291
This optional field specifies
(-)newsyslog.c (-1 / +2 lines)
Lines 738-744 Link Here
738
	else {
738
	else {
739
		if (fgets(line, BUFSIZ, f)) {
739
		if (fgets(line, BUFSIZ, f)) {
740
			pid = atol(line);
740
			pid = atol(line);
741
			if (pid < MIN_PID || pid > MAX_PID) {
741
			if (pid >= 0 && (pid < MIN_PID || pid > MAX_PID) ||
742
			    pid < 0 && (pid > -MIN_PID || pid < -MAX_PID)) {
742
				warnx("preposterous process number: %d", (int) pid);
743
				warnx("preposterous process number: %d", (int) pid);
743
				pid = 0;
744
				pid = 0;
744
			}
745
			}

Return to bug 28435