[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You're right. My fault. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5333] os.kill() inconsistency

2009-02-20 Thread Guilherme Polo
Guilherme Polo added the comment: I lost the race, congrats Jean :P I was going to copy & paste part of the man page. -- nosy: +gpolo resolution: -> invalid status: open -> closed ___ Python tracker _

[issue5333] os.kill() inconsistency

2009-02-20 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Read the docs for kill(2). -1 is a completely legitimate PID. Recommend close as invalid. -- nosy: +exarkun ___ Python tracker ___ __

[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Oddly, by passing -2 as PID no such process is raised: >>> os.kill(-2, 0) Traceback (most recent call last): File "", line 1, in ? OSError: [Errno 3] No such process >>> ___ Python tracker

[issue5333] os.kill() inconsistency

2009-02-20 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : On Linux Ubuntu equipped with Python 2.6.1 I get this: >>> os.kill(9, 0) Traceback (most recent call last): File "", line 1, in ? OSError: [Errno 3] No such process >>> print os.kill(-1, 0) None >>> IMHO the latter case should raise "No such proces