Commit Graph

5 Commits

Author SHA1 Message Date
Qi Xiao
0ded0b92ec Fix daemon build on Windows. 2017-12-15 22:12:59 +01:00
Qi Xiao
5465aceb3e daemon: No need for triple forking. 2017-12-15 21:13:18 +01:00
Qi Xiao
b1f33314bf Make daemon work on Windows.
The following are done on Windows:

1) Daemon listens on a TCP socket on 127.0.0.1, and writes the address
   to the sock file. Client reads the sock file and interpretes it as
   a TCP address.

2) Daemon only forks once, with an environment containing the SystemRoot
   variable (which for some reason is required for net.Listen to
   function).

The code is far from ideal, but it works \o/
2017-12-15 00:52:03 +00:00
Qi Xiao
b181ba1fbc daemon: On Windows, let daemon cd to c:\ instead of /. 2017-12-15 00:52:02 +00:00
Qi Xiao
79dc756ee5 Moving packages around.
Logics of the main package is now in program/. Subprograms are subpackages of
program/. For instance, daemon/ is now program/daemon.

The daemon/service package is now simply daemon/.

The version string has been moved into its own package, build/.
2017-12-04 21:08:45 +01:00