shutdown: let's not use exit() needlessly
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 17:50:34 +0000 (18:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Feb 2018 09:46:26 +0000 (10:46 +0100)
commit1f409a0cbb81e2fb55281623c836e117e77b5e32
treee7fb3ebd59d7c031368ef08c300ed2597e2fcda7
parentc01dcddf803a009dd9118dee0873cb9dd1dd02ce
shutdown: let's not use exit() needlessly

Generally we prefer 'return' from main() over exit() so that automatic
cleanups and such work correct. Let's do that in shutdown.c too, becuase
there's not really any reason not to.

With this we are pretty good in consistently using return from main()
rather than exit() all across the codebase. Yay!
src/core/shutdown.c