Initial import to Tizen
[profile/ivi/python-twisted.git] / twisted / test / process_linger.py
1
2 """Write to a file descriptor and then close it, waiting a few seconds before
3 quitting. This serves to make sure SIGCHLD is actually being noticed.
4 """
5
6 import os, sys, time
7
8 print "here is some text"
9 time.sleep(1)
10 print "goodbye"
11 os.close(1)
12 os.close(2)
13
14 time.sleep(2)
15
16 sys.exit(0)
17