facebookarchive / nailgun

Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead.
https://github.com/facebook/nailgun
Other
731 stars 138 forks source link

How to properly terminate the nail? #133

Closed rrzaripov closed 6 years ago

rrzaripov commented 6 years ago

I'm runnning storescp tool from dcm4che project. This utility work as server - listen some port in infinite loop and interupted by pressing CTRL+C keys. But how shutdown it in nailgun? I'm trying to close transport, but nail still work. Sending CTRL+C via stdin also not work. Thank you in advance for any help.

sbalabanov-zz commented 6 years ago

Do you want to terminate the nail or nailgun (server)?

rrzaripov commented 6 years ago

I need terminate nail, so adding listener into nail code perhaps the best way to do it. Thank for code example!