close(3) = 0 close(3) = 0 close(3) = 0 close(3) = 0 close(3) = 0 close(3) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(6) = 0 close(7) = 0 close(6) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(8) = 0 close(9) = 0 close(8) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(4) = 0 close(4) = 0 close(4) = 0 close(4) = 0 close(4) = 0 close(3) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(3) = 0 close(4) = 0 close(3) = 0 close(3) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(7) = 0 close(6) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(8) = 0 close(9) = 0 close(10) = 0 close(9) = 0 close(8) = 0 close(9) = 0 close(8) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(3) = 0 close(4) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(5) = 0 close(5) = 0 close(5) = 0 close(5) = 0 close(4) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(4) = 0 close(4) = 0 close(3) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(8) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(3) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3 socket(PF_NETLINK, SOCK_RAW, 0) = 4 bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(4, {sa_family=AF_NETLINK, pid=23793, groups=00000000}, [12]) = 0 sendto(4, "\24\0\0\0\26\0\1\3\0\350\355N\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\0\350\355N\361\\\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\0\350\355N\361\\\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128 recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\0\350\355N\361\\\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 close(4) = 0 bind(3, {sa_family=AF_INET, sin_port=htons(9090), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 listen(3, 5) = 0 close(5) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3078729728 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3078725632 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3078721536 [DEBUG/MainProcess] Queue._after_fork() Process 23794 attached Process 23795 attached Process 23796 attached Process 23797 attached Process 23798 attached [pid 23793] accept(3, [pid 23796] close(6) = 0 [pid 23795] close(6) = 0 [pid 23797] close(6) = 0 [pid 23794] close(6) = 0 [pid 23798] close(6) = 0 [DEBUG/Process-3] Queue._after_fork() [DEBUG/Process-4] Queue._after_fork() [DEBUG/Process-1] Queue._after_fork() [INFO/Process-4] child process calling self.run() [INFO/Process-3] child process calling self.run() [INFO/Process-2] child process calling self.run() [DEBUG/Process-5] Queue._after_fork() [INFO/Process-1] child process calling self.run() [INFO/Process-5] child process calling self.run() [pid 23793] <... accept resumed> {sa_family=AF_INET, sin_port=htons(48284), sin_addr=inet_addr("127.0.0.1")}, [16]) = 6 [pid 23793] dup(6) = 7 [DEBUG/MainProcess] starting listener and thread for sending handles [pid 23793] close(9) = 0 [pid 23793] close(9) = 0 [pid 23793] close(10) = 0 [pid 23793] close(9) = 0 [pid 23793] close(10) = 0 [pid 23793] close(9) = 0 [pid 23793] close(8) = 0 [pid 23793] close(8) = 0 [pid 23793] close(8) = 0 [pid 23793] close(8) = 0 [INFO/MainProcess] created temp directory /tmp/pymp-RuXBis [pid 23793] socket(PF_FILE, SOCK_STREAM, 0) = 8 [pid 23793] setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 [pid 23793] bind(8, {sa_family=AF_FILE, path="/tmp/pymp-RuXBis/listener-T3uPJ_"}, 34) = 0 [pid 23793] listen(8, 1) = 0 [pid 23793] getsockname(8, {sa_family=AF_FILE, path="/tmp/pymp-RuXBis/listener-T3uPJ_"}, [35]) = 0 Process 23800 attached [DEBUG/MainProcess] Queue._start_thread() [DEBUG/MainProcess] doing self._thread.start() Process 23801 attached [pid 23800] accept(8, [DEBUG/MainProcess] ... done self._thread.start() [pid 23793] accept(3, [DEBUG/MainProcess] starting thread to feed data to pipe [pid 23797] socket(PF_FILE, SOCK_STREAM, 0) = 7 [pid 23797] connect(7, {sa_family=AF_FILE, path="/tmp/pymp-RuXBis/listener-T3uPJ_"}, 34) = 0 [pid 23797] dup(7) = 8 [pid 23797] close(7) = 0 [pid 23800] <... accept resumed> {sa_family=AF_FILE, NULL}, [2]) = 9 [pid 23800] dup(9) = 11 [pid 23800] close(9) = 0 [pid 23797] close(9 [pid 23800] close(12 [pid 23797] <... close resumed> ) = 0 [pid 23800] <... close resumed> ) = 0 [pid 23797] close(7 [pid 23800] close(9) = 0 [pid 23797] <... close resumed> ) = 0 [pid 23800] close(9) = 0 [pid 23797] close(7) = 0 [pid 23800] sendmsg(11, {msg_name(0)=NULL, msg_iov(1)=[{"\267", 1}], msg_controllen=16, {cmsg_len=16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {7}}, msg_flags=0}, 0 [pid 23797] recvmsg(8, [pid 23800] <... sendmsg resumed> ) = 1 [pid 23800] close(7 [pid 23797] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\267", 1}], msg_controllen=16, {cmsg_len=16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {7}}, msg_flags=0}, 0) = 1 [pid 23800] <... close resumed> ) = 0 [pid 23797] close(8 [pid 23800] close(11) = 0 [pid 23797] <... close resumed> ) = 0 [pid 23797] dup(7 [pid 23800] accept(8, [pid 23797] <... dup resumed> ) = 8 [pid 23797] close(7) = 0 [pid 23797] close(8) = 0 [INFO/Process-1] process shutting down [DEBUG/Process-1] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-1] running the remaining "atexit" finalizers Process Process-1: Traceback (most recent call last): File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/yasar/myscripts/multiprocesssockserv.py", line 11, in worker reduced_socket = queue.get() File "/home/yasar/cpython/Lib/multiprocessing/queues.py", line 115, in get Process 23794 detached [INFO/Process-2] process shutting down [DEBUG/Process-2] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-2] running the remaining "atexit" finalizers Process Process-2: Traceback (most recent call last): File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/yasar/myscripts/multiprocesssockserv.py", line 11, in worker reduced_socket = queue.get() File "/home/yasar/cpython/Lib/multiprocessing/queues.py", line 115, in get self._rlock.acquire() KeyboardInterrupt [INFO/Process-2] process exiting with exitcode 1 Process 23795 detached [INFO/Process-3] process shutting down [DEBUG/Process-3] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-3] running the remaining "atexit" finalizers Process Process-3: Traceback (most recent call last): File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/yasar/myscripts/multiprocesssockserv.py", line 11, in worker reduced_socket = queue.get() File "/home/yasar/cpython/Lib/multiprocessing/queues.py", line 117, in get res = self._recv() KeyboardInterrupt [INFO/Process-3] process exiting with exitcode 1 Process 23796 detached self._rlock.acquire() KeyboardInterrupt [INFO/Process-1] process exiting with exitcode 1 Process 23797 detached [INFO/Process-5] process shutting down [DEBUG/Process-5] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-5] running the remaining "atexit" finalizers Process Process-5: Traceback (most recent call last): File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/yasar/myscripts/multiprocesssockserv.py", line 11, in worker reduced_socket = queue.get() File "/home/yasar/cpython/Lib/multiprocessing/queues.py", line 115, in get self._rlock.acquire() KeyboardInterrupt [INFO/Process-5] process exiting with exitcode 1 Process 23798 detached Process 23800 detached [INFO/Process-4] process shutting down [DEBUG/Process-4] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-4] running the remaining "atexit" finalizers Process Process-4: Traceback (most recent call last): File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 258, in _bootstrap Process 23801 detached self.run() File "/home/yasar/cpython/Lib/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/yasar/myscripts/multiprocesssockserv.py", line 11, in worker reduced_socket = queue.get() File "/home/yasar/cpython/Lib/multiprocessing/queues.py", line 115, in get self._rlock.acquire() KeyboardInterrupt [INFO/Process-4] process exiting with exitcode 1 Next line is supposed to give error in 2.7.2