FreeBSD Bugzilla – Attachment 626 Details for
Bug 2631
kill interprets empty arg as PID 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 723 bytes, created by
Arne Henrik Juul
on 1997-02-01 00:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Arne Henrik Juul
Created:
1997-02-01 00:10:02 UTC
Size:
723 bytes
patch
obsolete
>Index: kill.c >=================================================================== >RCS file: /usr/cvs/src/bin/kill/kill.c,v >retrieving revision 1.3 >diff -u -r1.3 kill.c >--- kill.c 1995/03/05 21:52:41 1.3 >+++ kill.c 1997/01/31 23:50:26 >@@ -87,7 +87,7 @@ > nosig(*argv); > } else if (isdigit(**argv)) { > numsig = strtol(*argv, &ep, 10); >- if (!*argv || *ep) >+ if (*ep) > errx(1, "illegal signal number: %s", *argv); > if (numsig < 0 || numsig > NSIG) > nosig(*argv); >@@ -101,7 +101,7 @@ > > for (errors = 0; *argv; ++argv) { > pid = strtol(*argv, &ep, 10); >- if (!*argv || *ep) { >+ if (!**argv || *ep) { > warnx("illegal process id: %s", *argv); > errors = 1; > } else if (kill(pid, numsig) == -1) {
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 2631
: 626