Here's a simple command which can be used to try to reproduce this
behavior (so you don't have to type out the statements in that session
by hand):

python -c '
import os, threading, time
threading.Thread(target=time.sleep, args=(600,)).start()
tids = os.listdir("/proc/" + str(os.getpid()) + "/task")
tids.remove(str(os.getpid()))
print tids[0] in os.listdir("/proc")
os.kill(int(tids[0]), 9)
'

The correct behavior would be to print False and then a traceback about
ESRCH.  The behavior I observe is that it prints False and then is
killed.

-- 
kill(2) succeeds when no process corresponds to the given PID
https://bugs.launchpad.net/bugs/341239
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to