Ensure "tinc start" knows if the daemon really started succesfully.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 20 May 2015 14:59:43 +0000 (16:59 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 20 May 2015 14:59:43 +0000 (16:59 +0200)
We do this by creating an umbilical between the CLI and the daemon. The
daemon pipes log messages to the CLI until it starts the main loop. The
daemon then cuts the umbilical. The CLI copies all the received log
messages to stderr, and the last byte indicates whether the daemon
started succesfully or not, so the CLI can exit with a useful exit code.


No differences found