summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-23 01:32:44 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-29 21:08:37 +0200
commit189d5bac5c45a6a735489541e285dec8bfc1d38d (patch)
tree955cf1bb252323c0f7720d88971de65ddbc0a290 /src/basic
parente6e242ad2d5f72573ceb4442242789aa23962cd2 (diff)
util: unify implementation of NOP signal handler
This is highly complex code after all, we really should make sure to only keep one implementation of this extremely difficult function around.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/util.c4
-rw-r--r--src/basic/util.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index c788a1d58b..f7e4aefebb 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -6916,3 +6916,7 @@ int receive_one_fd(int transport_fd, int flags) {
return *(int*) CMSG_DATA(found);
}
+
+void nop_signal_handler(int sig) {
+ /* nothing here */
+}
diff --git a/src/basic/util.h b/src/basic/util.h
index e6417b4ccd..96811f23d9 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -944,3 +944,5 @@ int fgetxattr_malloc(int fd, const char *name, char **value);
int send_one_fd(int transport_fd, int fd, int flags);
int receive_one_fd(int transport_fd, int flags);
+
+void nop_signal_handler(int sig);