X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Futil.c;h=d3876ded5b154ae17e6059139bd8d3bb472740de;hb=e0fa621b8b52da4d95bf5918eb998c9166e4bc7c;hp=30a3b058fce07cf9cc1ad142509248482b201655;hpb=0058d7b91ca90ee2dc605298bc5bac9bef0ededf;p=elogind.git diff --git a/src/util.c b/src/util.c index 30a3b058f..d3876ded5 100644 --- a/src/util.c +++ b/src/util.c @@ -2617,33 +2617,6 @@ int make_null_stdio(void) { return make_stdio(null_fd); } -bool is_clean_exit(int code, int status) { - - if (code == CLD_EXITED) - return status == 0; - - /* If a daemon does not implement handlers for some of the - * signals that's not considered an unclean shutdown */ - if (code == CLD_KILLED) - return - status == SIGHUP || - status == SIGINT || - status == SIGTERM || - status == SIGPIPE; - - return false; -} - -bool is_clean_exit_lsb(int code, int status) { - - if (is_clean_exit(code, status)) - return true; - - return - code == CLD_EXITED && - (status == EXIT_NOTINSTALLED || status == EXIT_NOTCONFIGURED); -} - bool is_device_path(const char *path) { /* Returns true on paths that refer to a device, either in