Add assertions that kill() is never accidentally passed a non-positive
authorMartin Pool <mbp@samba.org>
Wed, 20 Mar 2002 06:57:03 +0000 (06:57 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 20 Mar 2002 06:57:03 +0000 (06:57 +0000)
commit75722fa183d1678bc7360bc79f9ac8cf17cd62e3
treee0d46b5c43e731ddba89fb1e632ccef081e100ad
parenta17b5158f1fad6702187afcd1c39684eb4d2ed34
Add assertions that kill() is never accidentally passed a non-positive
pid.  This follows a bug in rsync where it would accidentally
kill(-1), removing all the user's processes.  I can't see any way this
would directly happen in Samba, but having the assertions seems
beneficial.

http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
(This used to be commit 098905bea29c7d5b886809d431294ddf2fc1e152)
source3/lib/messages.c
source3/lib/util.c
source3/nmbd/asyncdns.c
source3/web/startstop.c