Message131998
| Author |
vstinner |
| Recipients |
asksol, bquinlan, jnoller, pitrou, vstinner |
| Date |
2011年03月24日.16:16:54 |
| SpamBayes Score |
0.010412103 |
| Marked as misclassified |
No |
| Message-id |
<1300983414.9.0.68749032848.issue11663@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the following example, if I kill the child process, the parent is immediatly done:
---
from os import getpid
from time import sleep
from multiprocessing import Process
def f(sec):
print("child %s: wait %s seconds" % (getpid(), sec))
sleep(sec)
if __name__ == '__main__':
print("parent %s: wait child" % (getpid(),))
p = Process(target=f, args=(30,))
p.start()
p.join()
--- |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年03月24日 16:16:54 | vstinner | set | recipients:
+ vstinner, bquinlan, pitrou, jnoller, asksol |
| 2011年03月24日 16:16:54 | vstinner | set | messageid: <1300983414.9.0.68749032848.issue11663@psf.upfronthosting.co.za> |
| 2011年03月24日 16:16:54 | vstinner | link | issue11663 messages |
| 2011年03月24日 16:16:54 | vstinner | create |
|