On Wed, Oct 16, 2019 at 07:41:34AM +0000, Andriy Gapon wrote:
> Author: avg
> Date: Wed Oct 16 07:41:33 2019
> New Revision: 353625
> URL: https://svnweb.freebsd.org/changeset/base/353625
> 
> Log:
>   zfs: add a lame emulation of cv_wait_sig(9) in userland to fix r353618
>   
>   Not sure if we need anything better.
>   Maybe we should try to port illumos libfakekernel or provide something
>   similar natively.
>   
>   MFC after:  4 weeks
>   X-MFC with: r353618
> 
> Modified:
>   head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
>   head/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
> 
> Modified: head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
> ==============================================================================
> --- head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c        Wed Oct 
> 16 07:20:59 2019        (r353624)
> +++ head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c        Wed Oct 
> 16 07:41:33 2019        (r353625)
> @@ -321,6 +321,18 @@ cv_wait(kcondvar_t *cv, kmutex_t *mp)
>       mp->m_owner = curthread;
>  }
>  
> +/*
> + * NB: this emulates FreeBSD cv_wait_sig(9), not the illumos one.
> + * Meanings of the return code is different.
> + * NB: this does not actually catch any siganls.
s/siganls/signals/

_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to