##// END OF EJS Templates
Remove print statements in ZMQ parent pollers....
Evan Patterson -
Show More
@@ -5,9 +5,6 b' import time'
5 5 from thread import interrupt_main
6 6 from threading import Thread
7 7
8 # Local imports.
9 from IPython.utils.io import raw_print
10
11 8
12 9 class ParentPollerUnix(Thread):
13 10 """ A Unix-specific daemon thread that terminates the program immediately
@@ -24,7 +21,6 b' class ParentPollerUnix(Thread):'
24 21 while True:
25 22 try:
26 23 if os.getppid() == 1:
27 raw_print('Killed by parent poller!')
28 24 os._exit(1)
29 25 time.sleep(1.0)
30 26 except OSError, e:
@@ -117,9 +113,7 b' class ParentPollerWindows(Thread):'
117 113 handle = handles[result - WAIT_OBJECT_0]
118 114
119 115 if handle == self.interrupt_handle:
120 raw_print('Interrupted by parent poller!')
121 116 interrupt_main()
122 117
123 118 elif handle == self.parent_handle:
124 raw_print('Killed by parent poller!')
125 119 os._exit(1)
General Comments 0
You need to be logged in to leave comments. Login now