pravj / Doga

:chart_with_upwards_trend: HTTP log monitoring console for Humans
MIT License
241 stars 9 forks source link

Process hangs when quit #5

Open microamp opened 10 years ago

microamp commented 10 years ago

Managed to run Doga using Python 2, but the process seems to hang when I quit it.

When I tried to kill the process manually after waiting for a few minutes, I got the following error. (The process was still running after the keyboard interruption, so I manually shut down the terminal it was running on.)

^CTraceback (most recent call last):
  File "/usr/bin/doga", line 9, in <module>
    load_entry_point('Doga==0.2.0', 'console_scripts', 'doga')()
  File "/usr/lib/python2.7/site-packages/Doga/doga.py", line 57, in main
    socket_interface = SocketInterface(packet_parser)
  File "/usr/lib/python2.7/site-packages/Doga/interfaces/sockets.py", line 25, in __init__
    self.capture(self.raw_socket)
  File "/usr/lib/python2.7/site-packages/Doga/interfaces/sockets.py", line 65, in capture
    packet_tuple = sock.recvfrom(65565)
KeyboardInterrupt
^C^C

By the way, it looks good. Looking forward to seeing further enhancements in the future.

pravj commented 10 years ago

yeah I have created an issue #1 for this thing. I'll first work for issue #2 this evening and will come to this soon.

pravj commented 10 years ago

as of now I use Ctrl + Z to exit of application. and then pkill :smile: