win32: call olsr_exit() instead of exit()
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 5 Nov 2015 22:44:22 +0000 (23:44 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 6 Nov 2015 15:26:22 +0000 (16:26 +0100)
commit0950912ceabc8cec60466293f515ff5b59414121
tree978009f3f00e7f11751a788fbb23b4c8dfc4930c
parentd62768de09bcffe225140dbe8e4138c1d6c73a1f
win32: call olsr_exit() instead of exit()

olsr_exit tries to do proper shutdown that cleans up data structures
by raise()ing the SIGTERM signal. This signal then causes olsr_shutdown
to be invoked (only when the signal handler is setup), which will do
the cleanup of the data structures.

According to the man page of raise():
  If the signal causes a handler to be called, raise() will return
  only after the signal handler has returned.

And since olsr_exit() invokes exit() after raise()ing the signal, there
is no harm in calling it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/win32/ifnet.c
src/win32/net.c