aboutsummaryrefslogtreecommitdiffstats
path: root/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'scan.c')
-rw-r--r--scan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scan.c b/scan.c
index ee3b118..08ff22d 100644
--- a/scan.c
+++ b/scan.c
@@ -317,7 +317,7 @@ signal_existing(int dir_fd)
struct dirent *dp;
char *ctrl_path, *lock_path;
int ctrl_fd, lock_fd;
- sigmask_t mask;
+ sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGPIPE);
@@ -343,7 +343,7 @@ signal_existing(int dir_fd)
if ((ctrl_fd = open(ctrl_path, O_WRONLY | O_CLOEXEC)) == -1)
err(1, "open()");
- if (setprocmask(SIG_BLOCK, &mask, NULL) == -1)
+ if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)
err(1, "setprocmask()");
if (write(ctrl_fd, "x", 1) != 1) {
@@ -351,7 +351,7 @@ signal_existing(int dir_fd)
err(1, "write()");
}
- if (setprocmask(SIG_UNBLOCK, &mask, NULL) == -1)
+ if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)
err(1, "setprocmask()");
if (close(ctrl_fd) == -1)