From 9f8f1cc5cf565ebe09a9f9c4b3b1f66ab6c22c21 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 16 Sep 2018 11:07:24 -0600 Subject: [PATCH] libs/libc/wqueue/work_usrthread.c: Fix some errors that I introduced in a recent commit. --- libs/libc/wqueue/work_usrthread.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/libc/wqueue/work_usrthread.c b/libs/libc/wqueue/work_usrthread.c index b0f06c3a98..42ee091eb5 100644 --- a/libs/libc/wqueue/work_usrthread.c +++ b/libs/libc/wqueue/work_usrthread.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -268,7 +269,7 @@ void work_process(FAR struct usr_wqueue_s *wqueue) * signals directed to the worker thread to pend. */ - (void)nxsig_procmask(SIG_BLOCK, &sigset, &oldset); + (void)sigprocmask(SIG_BLOCK, &sigset, &oldset); work_unlock(); if (next == WORK_DELAY_MAX) @@ -291,10 +292,10 @@ void work_process(FAR struct usr_wqueue_s *wqueue) rqtp.tv_sec = sec; rqtp.tv_nsec = (next - (sec * 1000000)) * 1000; - sigtimewait(&sigset, NULL, &rqtp); + sigtimedwait(&sigset, NULL, &rqtp); } - (void)nxsig_procmask(SIG_SETMASK, &oldset, NULL); + (void)sigprocmask(SIG_SETMASK, &oldset, NULL); } /****************************************************************************