]> granicus.if.org Git - transmission/commit
#5910: Run daemon as a service on Windows
authorMike Gelfand <mikedld@mikedld.com>
Sat, 4 Apr 2015 17:43:56 +0000 (17:43 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Sat, 4 Apr 2015 17:43:56 +0000 (17:43 +0000)
commita079af9ed5e0891edae9d789b618c31f1e61789f
treec180274a28fa0535bda3053f223fb13cf9cbe06c
parent5578d616a8f3a4be6f560a06b78d581292a9729b
#5910: Run daemon as a service on Windows

Factor out demonization implementation to platform-specific files.
Implement daemonization on Windows using service API. Improve *NIX
implementation by handling signals asynchronously to prevent potential
issues of running complex code inside the handler.
daemon/CMakeLists.txt
daemon/daemon-posix.c [new file with mode: 0644]
daemon/daemon-win32.c [new file with mode: 0644]
daemon/daemon.c
daemon/daemon.h [new file with mode: 0644]