Closed pmontrasio closed 8 years ago
I have pushed a fix for server mode, all threads should be taken care of on exiting the server.
Still working on a fix for window(webview) mode.
window_title='hogwatch'
server=Thread(
target=app_server
)
server.setDaemon(True)
server.start()
webview.create_window(
window_title,
url,
resizable=True,
width=400,
height=600,
min_size=(320, 300)
)
In hogwatch init script, I start the webserver in daemon mode, which means it should exit when all the non-daemon threads have finished but that doesn't happen.
PS: the webview.create_window method is a blocking one. continuing on hitting the 'x' button. pywebview for reference
fixed.
After clicking the x button to close the program two nethog processes are left running.
root 2123 13757 0 10:38 pts/1 00:00:00 nethogs -d 1 -v 0 -t root 2124 13757 0 10:38 pts/1 00:00:00 nethogs -d 1 -v 1 -t
Process 13757 is
If I run hogwatch again I get
and hogwatch's window is blank. I have to manually kill those two processes to make it work again.
Sometimes I also get
Segmentation fault (core dumped)
in the console I run hogwatch from, but the two processes are left running even when there is no core dump.