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

(-)kill.c (-2 / +2 lines)
Lines 87-93 Link Here
87
				nosig(*argv);
87
				nosig(*argv);
88
		} else if (isdigit(**argv)) {
88
		} else if (isdigit(**argv)) {
89
			numsig = strtol(*argv, &ep, 10);
89
			numsig = strtol(*argv, &ep, 10);
90
			if (!*argv || *ep)
90
			if (*ep)
91
				errx(1, "illegal signal number: %s", *argv);
91
				errx(1, "illegal signal number: %s", *argv);
92
			if (numsig < 0 || numsig > NSIG)
92
			if (numsig < 0 || numsig > NSIG)
93
				nosig(*argv);
93
				nosig(*argv);
Lines 101-107 Link Here
101
101
102
	for (errors = 0; *argv; ++argv) {
102
	for (errors = 0; *argv; ++argv) {
103
		pid = strtol(*argv, &ep, 10);
103
		pid = strtol(*argv, &ep, 10);
104
		if (!*argv || *ep) {
104
		if (!**argv || *ep) {
105
			warnx("illegal process id: %s", *argv);
105
			warnx("illegal process id: %s", *argv);
106
			errors = 1;
106
			errors = 1;
107
		} else if (kill(pid, numsig) == -1) {
107
		} else if (kill(pid, numsig) == -1) {

Return to bug 2631