HomeFreeBSD

daemon: repace goto exit with daemon_terminate()

Description

daemon: repace goto exit with daemon_terminate()

Start breaking down big main()
Remove goto exit label and replace it with a function that does cleanup.

Comment re-worded by kevans@.

(cherry picked from commit cf6356fd471cdf4e5c52550f63599881d722962c)

Details

Provenance
ihor_antonovs.familyAuthored on Mar 18 2023, 5:31 AM
kevansCommitted on Apr 9 2023, 10:49 PM
Parents
rG7362081fad70: daemon: move variables into struct daemon_state
Branches
Unknown
Tags
Unknown