Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 234 Bytes
#!/usr/bin/python
def breakpipe():
import sys
from forked import forkpipe
import time
pid, r, w = forkpipe()
if pid == 0:
sys.exit(1)
time.sleep(10)
else:
w.write("test")
breakpipe()