Bug 2631 - kill interprets empty arg as PID 0
Summary: kill interprets empty arg as PID 0
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 1997-02-01 00:10 UTC by Arne Henrik Juul
Modified: 1997-08-21 23:00 UTC (History)
1 user (show)

See Also:

file.diff (723 bytes, patch)
1997-02-01 00:10 UTC, Arne Henrik Juul
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Henrik Juul 1997-02-01 00:10:02 UTC
	When /bin/kill is given an empty argument, this is converted
	to PID 0, with unpleasant effects on kill's process group.

Fix: A simple typo of !*argv where !**argv was clearly meant.
	There was another check of the same type, but that one
	was clearly unneccessary and I've just removed it.
	/bin/kill -CONT ''
	Note that you should have got an error.
Comment 1 jlemon freebsd_committer 1997-08-21 22:57:01 UTC
State Changed
From-To: open->closed

Fixed in kill.c, rev 1.9, and