]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/utils.c
tree-wide: s/sigprocmask/pthread_sigmask()/g
[mirror_lxc.git] / src / lxc / utils.c
index 2669a4d4beff218a4e02d3e15f980f3b00fdedd9..82403dfc69ea38dbf83fb0582c226cab4d26b9f0 100644 (file)
@@ -31,6 +31,7 @@
 #include <grp.h>
 #include <inttypes.h>
 #include <libgen.h>
+#include <pthread.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -495,7 +496,7 @@ struct lxc_popen_FILE *lxc_popen(const char *command)
                if (ret < 0)
                        _exit(EXIT_FAILURE);
 
-               ret = sigprocmask(SIG_UNBLOCK, &mask, NULL);
+               ret = pthread_sigmask(SIG_UNBLOCK, &mask, NULL);
                if (ret < 0)
                        _exit(EXIT_FAILURE);