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