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=11573, groups=00000000}, [12]) = 0 sendto(4, "\24\0\0\0\26\0\1\3\261\345\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\261\345\355N5-\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\261\345\355N5-\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\261\345\355N5-\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(6) = 0 close(5) = 0 close(6) = 0 close(5) = 0 close(4) = 0 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3079155712 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3079151616 close(6) = 0 [DEBUG/MainProcess] created semlock with handle 3079147520 [DEBUG/MainProcess] Queue._after_fork() Process 11574 attached Process 11575 attached Process 11576 attached Process 11577 attached Process 11578 attached [pid 11573] accept(3, [pid 11576] close(6) = 0 [pid 11575] close(6) = 0 [pid 11577] close(6) = 0 [pid 11574] close(6) = 0 [pid 11578] close(6) = 0 [DEBUG/Process-3] Queue._after_fork() [DEBUG/Process-4] Queue._after_fork() [DEBUG/Process-2] Queue._after_fork() [DEBUG/Process-1] Queue._after_fork() [INFO/Process-2] child process calling self.run() [INFO/Process-4] child process calling self.run() [INFO/Process-1] child process calling self.run() [DEBUG/Process-5] Queue._after_fork() [INFO/Process-5] child process calling self.run() [pid 11573] <... accept resumed> {sa_family=AF_INET, sin_port=htons(48274), sin_addr=inet_addr("127.0.0.1")}, [16]) = 6 [pid 11573] dup(6) = 7 [DEBUG/MainProcess] starting listener and thread for sending handles [pid 11573] close(9) = 0 [pid 11573] close(10) = 0 [pid 11573] close(9) = 0 [pid 11573] close(10) = 0 [pid 11573] close(9) = 0 [pid 11573] close(8) = 0 [pid 11573] close(8) = 0 [pid 11573] close(8) = 0 [pid 11573] close(8) = 0 [INFO/MainProcess] created temp directory /tmp/pymp-ynUK0N [pid 11573] socket(PF_FILE, SOCK_STREAM, 0) = 8 [pid 11573] setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 [pid 11573] bind(8, {sa_family=AF_FILE, path="/tmp/pymp-ynUK0N/listener-ZicbAA"}, 34) = 0 [pid 11573] listen(8, 1) = 0 [pid 11573] getsockname(8, {sa_family=AF_FILE, path="/tmp/pymp-ynUK0N/listener-ZicbAA"}, [35]) = 0 Process 11579 attached [DEBUG/MainProcess] Queue._start_thread() [DEBUG/MainProcess] doing self._thread.start() Process 11580 attached [pid 11579] accept(8, [DEBUG/MainProcess] ... done self._thread.start() [pid 11573] accept(3, [DEBUG/MainProcess] starting thread to feed data to pipe [pid 11576] socket(PF_FILE, SOCK_STREAM, 0) = 7 [pid 11576] connect(7, {sa_family=AF_FILE, path="/tmp/pymp-ynUK0N/listener-ZicbAA"}, 34) = 0 [pid 11576] dup(7) = 8 [pid 11576] close(7) = 0 [pid 11579] <... accept resumed> {sa_family=AF_FILE, NULL}, [2]) = 9 [pid 11579] dup(9) = 11 [pid 11579] close(9) = 0 [pid 11576] close(9 [pid 11579] close(12) = 0 [pid 11579] close(9 [pid 11576] <... close resumed> ) = 0 [pid 11576] close(7 [pid 11579] <... close resumed> ) = 0 [pid 11579] close(9) = 0 [pid 11576] <... close resumed> ) = 0 [pid 11576] close(7) = 0 [pid 11579] 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) = 1 [pid 11579] close(7) = 0 [pid 11579] close(11) = 0 [pid 11579] accept(8, [pid 11576] recvmsg(8, {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 11576] close(8) = 0 [pid 11576] dup(7) = 8 [pid 11576] close(7) = 0 [pid 11576] 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 self._rlock.acquire() KeyboardInterrupt [INFO/Process-1] process exiting with exitcode 1 Process 11574 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 117, in get res = self._recv() KeyboardInterrupt [INFO/Process-2] process exiting with exitcode 1 Process 11575 detached Process 11576 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 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 Process 11577 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 11578 detached Process 11579 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 115, in get self._rlock.acquire() KeyboardInterrupt [INFO/Process-3] process exiting with exitcode 1 Next line is supposed to give error in 2.7.2 Process 11580 detached