Shutdown cleanly when receiving a Windows console shutdown request.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 16:47:01 +0000 (17:47 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 16:47:01 +0000 (17:47 +0100)
commit14be1d30ec3727906907dad49d3bcb868c19d777
tree9b2e84e06a0a5bf1a81214c88db1687578a5ae1e
parent5ffdff685a0e7d25f7c016f3a6cd89bb82fed71c
Shutdown cleanly when receiving a Windows console shutdown request.

This commit makes tinc exit cleanly on Windows when hitting CTRL+C at
the console or when the user logs off. This change has no effect when
running tinc as a service.
src/process.c
src/process.h
src/tincd.c