summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 03:55:19 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 03:55:19 +0200
commitcb8a8f78a11cedb8cba1abfa9a63b0d3ea8eef93 (patch)
tree478197daa12a47d8be21d0fc458662ead9af2255 /util.h
parentca139f94c8de427616f54ab38262a47c4a636ffd (diff)
service: consider a process exiting with SIGTERM a clean exit
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index ba27c759e8..d0fc319e03 100644
--- a/util.h
+++ b/util.h
@@ -181,6 +181,8 @@ char *format_timestamp(char *buf, size_t l, usec_t t);
int make_stdio(int fd);
+bool is_clean_exit(int code, int status);
+
#define DEFINE_STRING_TABLE_LOOKUP(name,type) \
const char *name##_to_string(type i) { \
if (i < 0 || i >= (type) ELEMENTSOF(name##_table)) \