chiark / gitweb /
core: introduce new RestartForceExitStatus= service setting
[elogind.git] / src / shared / exit-status.c
index ce1f1bde655798947412a65adf8d81d3a1433a99..38d71e182dab97760f141e351dc82638edbb02ce 100644 (file)
@@ -208,3 +208,11 @@ bool is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status) {
                 code == CLD_EXITED &&
                 (status == EXIT_NOTINSTALLED || status == EXIT_NOTCONFIGURED);
 }
+
+void exit_status_set_free(ExitStatusSet *x) {
+        assert(x);
+
+        set_free(x->code);
+        set_free(x->signal);
+        x->code = x->signal = NULL;
+}