From aaea6322e9e765969f452764e51ca1ddd9783264 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 9 Aug 2021 23:42:35 +0000 Subject: skalibs-2.11.0.0 API change Signed-off-by: Laurent Bercot --- src/libs6/ftrigw_notifyb.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libs6/ftrigw_notifyb.c') diff --git a/src/libs6/ftrigw_notifyb.c b/src/libs6/ftrigw_notifyb.c index ee5c74c..107a760 100644 --- a/src/libs6/ftrigw_notifyb.c +++ b/src/libs6/ftrigw_notifyb.c @@ -2,18 +2,20 @@ #include #include -#include + #include int ftrigw_notifyb (char const *path, char const *s, size_t len) { - struct skasigaction old ; + struct sigaction old ; + struct sigaction action = { .sa_handler = SIG_IGN, .sa_flags = SA_RESTART | SA_NOCLDSTOP } ; int r ; - if (skasigaction(SIGPIPE, &SKASIG_IGN, &old) < 0) return -1 ; + sigfillset(&action.sa_mask) ; + if (sigaction(SIGPIPE, &action, &old) == -1) return -1 ; r = ftrigw_notifyb_nosig(path, s, len) ; { int e = errno ; - skasigaction(SIGPIPE, &old, 0) ; + sigaction(SIGPIPE, &old, 0) ; errno = e ; } return r ; -- cgit v1.3.1