~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/test/process_linger.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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