-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do you use SIGKILL? #34
Comments
just want to kill the child_process. |
You should be able to use a milder signal like SIGHUP. |
@vid I had error with SIGHUP, I'm running node v0.10.36 on win7. What do you mean by "close database connections before restarting", what API do you want? A callback for |
Have you tried SIGINT, per the process page above? If necessary you could detect the OS if you'd like your module to be cross platform. I mean my app opens a connection to the database and should properly close it before restarting, as would any well behaved app. |
No dice with SIGINT. I'm searching for a way to |
+1, I'm building a workflow with a watcher on js files and it would be nice if the script does not exit when there is an error in the child process |
please use https://github.com/gimm/gulp-live-server instead of gulp-express, I'll apply your change to gulp-live-server soon |
Thanks :) |
It's not trappable. I would like to close database connections before restarting.
http://nodejs.org/api/process.html#process_signal_events
thanks!
The text was updated successfully, but these errors were encountered: