To Stop a Process that is Waiting on socket.accept()

mumebuhi mumebuhi at gmail.com
Fri Oct 27 02:15:35 EDT 2006


Hi Steve,

The output is as the following (excluding the "---start---" and
"---end---"):
---start---
die now
Traceback (most recent call last):
  File "../../../scratch/python/tmp.py", line 39, in ?
    channel, details = server.accept()
  File "/usr/lib/python2.4/socket.py", line 169, in accept
    sock, addr = self._sock.accept()
  File "../../../scratch/python/tmp.py", line 33, in cleanup
    server.shutdown(socket.SHUT_RDWR)
  File "<string>", line 1, in shutdown
socket.error: (128, 'Transport endpoint is not connected')
---end---

I copied and pasted the previous posting and the above is the output.
It is the actual code. Sorry if I don't get your point.


Buhi




More information about the Python-list mailing list