aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/test/process_linger.py
blob: a95a8d2fcdb60370d395ac8201d34a913c766b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Write to a file descriptor and then close it, waiting a few seconds before
quitting. This serves to make sure SIGCHLD is actually being noticed.
"""

import os, sys, time

print "here is some text"
time.sleep(1)
print "goodbye"
os.close(1)
os.close(2)

time.sleep(2)

sys.exit(0)