Graceful shutdown
Status: Alpha
Brought to you by:
yaplej
I want opennopd to shutdown properly. Currently the only way to shutdown is to kill the process. Currently it's impossible to break out of the recv() in fetcher.c. I was able to find an example how to do this by making the "h" and "qh" global variables then closing them. This I think forces recv() to return -1 breaking the loop.
http://www.auroragrp.com/agi/nfq_sniff.c
There should be some "wait time" while things properly shutdown. This would include:
Here is a copy of the linked example.