提交 5b9429ad 编写于 作者: R Rich Felker

make sigtimedwait a cancellation point

上级 0a949ebd
#include <signal.h>
#include <errno.h>
#include "syscall.h"
#include "libc.h"
int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout)
{
int ret;
CANCELPT_BEGIN;
do {
ret = syscall4(__NR_rt_sigtimedwait, (long)mask, (long)si, (long)timeout, SYSCALL_SIGSET_SIZE);
} while (ret<0 && errno==EINTR);
CANCELPT_END;
return ret;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册