git: sys/vfs/fuse: Drop PCATCH from tsleep on waiting IPC completion
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Wed Apr 3 00:30:50 PDT 2019
commit 419ae2ab33adc334dbd5376707059d86f40b9d5d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Wed Apr 3 00:30:11 2019 +0900
sys/vfs/fuse: Drop PCATCH from tsleep on waiting IPC completion
Even with kern_sigprocmask(SIG_BLOCK) called prior to tsleep(9),
tsleep with PCATCH flag can still catch a signal (e.g. SIGINT) and
return 0 (not EINTR).
This is due to tsleep(9) setting "lp->lwp_flags |= LWP_SINTR;" before
going into sleep when PCATCH is specified.
When this happens, KKASSERT() after tsleep(9) can be false, so just
drop PCATCH.
Summary of changes:
sys/vfs/fuse/fuse_ipc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/419ae2ab33adc334dbd5376707059d86f40b9d5d
--
DragonFly BSD source repository
More information about the Commits
mailing list