Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/sys_sig.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/sys_sig.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.46 retrieving revision 1.46.14.1 diff -u -p -r1.46 -r1.46.14.1 --- src/sys/kern/sys_sig.c 2016/08/04 06:43:43 1.46 +++ src/sys/kern/sys_sig.c 2018/12/26 14:02:04 1.46.14.1 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_sig.c,v 1.46 2016/08/04 06:43:43 christos Exp $ */ +/* $NetBSD: sys_sig.c,v 1.46.14.1 2018/12/26 14:02:04 pgoyette Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.46 2016/08/04 06:43:43 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.46.14.1 2018/12/26 14:02:04 pgoyette Exp $"); #include "opt_dtrace.h" @@ -766,6 +766,8 @@ sigtimedwait1(struct lwp *l, const struc */ sigminusset(&sigcantmask, &l->l_sigwaitset); + memset(&ksi.ksi_info, 0, sizeof(ksi.ksi_info)); + mutex_enter(p->p_lock); /* Check for pending signals in the process, if no - then in LWP. */