From: Guus Sliepen Date: Wed, 20 May 2015 14:59:43 +0000 (+0200) Subject: Ensure "tinc start" knows if the daemon really started succesfully. X-Git-Tag: release-1.1pre12~136 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;h=11868b890d1a7f4cfbfb37099393b32019010f66;hp=11868b890d1a7f4cfbfb37099393b32019010f66;p=tinc Ensure "tinc start" knows if the daemon really started succesfully. 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. ---