sidorares / osquery-node

node.js client for osquery
30 stars 4 forks source link

Server listen does not clean up used socket path #3

Open Downchuck opened 9 years ago

Downchuck commented 9 years ago

Apparently this can lead to many "/var/osquery/osquery.em.*" files and attempts address in use errors. This may only happen if the script is terminated unexpectedly (not sure).

sidorares commented 9 years ago

not sure if there is automatic way to delete them, I guess you need to unlink explicitly when no longer need

Downchuck commented 9 years ago

Correct; http://stackoverflow.com/questions/16178239/gracefully-shutdown-unix-socket-server-on-nodejs-running-under-forever