FreeBSD Bugzilla – Attachment 15309 Details for
Bug 28435
[patch] allow newsyslog to signal process groups
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.34 KB, created by
Gregory Bond
on 2001-06-27 04:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Gregory Bond
Created:
2001-06-27 04:20:01 UTC
Size:
1.34 KB
patch
obsolete
>Index: newsyslog.8 >=================================================================== >RCS file: /usr/ncvs/src/usr.sbin/newsyslog/newsyslog.8,v >retrieving revision 1.23.2.4 >diff -u -r1.23.2.4 newsyslog.8 >--- newsyslog.8 2001/04/26 02:37:08 1.23.2.4 >+++ newsyslog.8 2001/06/27 02:57:25 >@@ -280,7 +280,12 @@ > field is present, a > .Ar signal_number > is sent the process id contained in this >-file. This field must start with "/" in order to be recognized >+file. If this number is negative, it is treated as (the negative of) >+a process group ID and the signal is sent to all members of that >+process group. See the >+.Xr kill 2 >+man page for details. >+This field must start with "/" in order to be recognized > properly. > .It Ar signal_number > This optional field specifies >Index: newsyslog.c >=================================================================== >RCS file: /usr/ncvs/src/usr.sbin/newsyslog/newsyslog.c,v >retrieving revision 1.25.2.2 >diff -u -r1.25.2.2 newsyslog.c >--- newsyslog.c 2000/10/20 00:44:27 1.25.2.2 >+++ newsyslog.c 2001/06/27 02:55:37 >@@ -738,7 +738,8 @@ > else { > if (fgets(line, BUFSIZ, f)) { > pid = atol(line); >- if (pid < MIN_PID || pid > MAX_PID) { >+ if (pid >= 0 && (pid < MIN_PID || pid > MAX_PID) || >+ pid < 0 && (pid > -MIN_PID || pid < -MAX_PID)) { > warnx("preposterous process number: %d", (int) pid); > pid = 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28435
: 15309