Bug fix: don't call exit handler when daemonize
commita8c7a36f6b6ee31a7a76a51cd789928921dd60e2
authorAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Tue, 14 Jan 2014 14:54:13 +0000 (14 14:54 +0000)
committerAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Tue, 14 Jan 2014 14:54:13 +0000 (14 14:54 +0000)
treef4e102d03193d15f9f34a8078ec8111c4860754b
parentdacef27cd5171dd659e562e1ab4c90fe9a17e1e8
Bug fix: don't call exit handler when daemonize

Bug introduced in commit r528, "Always run vpnc-script at exit".

When vpnc goes background, the foreground task have to exit
without calling the handler registerd with atexit(), otherwise
vpnc-script would modify routing tables.

Bug found by Alon Bar-Lev <alon.barlev@gmail.com>

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@540 315857ad-0bdb-0310-b42e-dec37551a5f0
tunip.c