diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:27:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:52:10 +0100 |
commit | b16fee15ff0dbaa8140beb62dc27f3a686c70258 (patch) | |
tree | f14d180ed4d8127f57ba1d26221d4933508db539 /src/basic/async.c | |
parent | 0c28d28834f71e74d5a2d8bcfb19938a34396036 (diff) |
remount-fs: modernize coding style a bit
a) Use _cleanup_ where it makes sense
b) Uniformly use negative errno-style errors internally, convert to
EXIT_FAILURE/EXIT_SUCCESS only when actually exiting.
c) Use log_oom() where appropriate
d) Fix minor memory leak in hashmap addition error path.
e) Don't pretend we could continue sensibly on OOM or fork() failure
f) Use PR_SET_PDEATHSIG to make sure clients we don't kill on error are
cleaned up.
g) Make use of STRV_MAKE() where it's pretty to do so.
h) Simplify error paths.
Diffstat (limited to 'src/basic/async.c')
0 files changed, 0 insertions, 0 deletions