… | … | ||
---|---|---|---|
149 | */ | 149 | */ |
150 | void cleanup_and_exit(int c) | 150 | void cleanup_and_exit(int c) |
151 | { | 151 | { |
152 | network.shutdown_all (); | 152 | network.shutdown_all (); |
153 | 153 | ||
154 | if (pidfilename) | 154 | if (conf.pidfilename) |
155 | remove_pid (pidfilename); | 155 | remove_pid (conf.pidfilename); |
156 | 156 | ||
157 | slog (L_INFO, _("terminating with exit code %d"), c); | 157 | slog (L_INFO, _("terminating with exit code %d"), c); |
158 | 158 | ||
159 | exit (c); | 159 | exit (c); |
160 | } | 160 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |