chiark / gitweb /
coredump: rework coredumping logic
[elogind.git] / src / basic / signal-util.c
index 4bb2177d67129d2e74b3f220f5186465d6551fea..ee4c7efdf0d2c9ce4d5d90ef34b37348d42d324e 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "util.h"
+#include "parse-util.h"
 #include "signal-util.h"
+#include "string-table.h"
+#include "string-util.h"
+#include "util.h"
 
 int reset_all_signal_handlers(void) {
         static const struct sigaction sa = {
@@ -84,6 +87,7 @@ static int sigaction_many_ap(const struct sigaction *sa, int sig, va_list ap) {
         return r;
 }
 
+#if 0 /// UNNEEDED by elogind
 int sigaction_many(const struct sigaction *sa, ...) {
         va_list ap;
         int r;
@@ -94,6 +98,7 @@ int sigaction_many(const struct sigaction *sa, ...) {
 
         return r;
 }
+#endif // 0
 
 int ignore_signals(int sig, ...) {
 
@@ -112,8 +117,7 @@ int ignore_signals(int sig, ...) {
         return r;
 }
 
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
 int default_signals(int sig, ...) {
 
         static const struct sigaction sa = {
@@ -269,3 +273,9 @@ int signal_from_string_try_harder(const char *s) {
 
         return signo;
 }
+
+#if 0 /// UNNEEDED by elogind
+void nop_signal_handler(int sig) {
+        /* nothing here */
+}
+#endif // 0