From owner-freebsd-bugs Thu May 10 0:40: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1D5FC37B423 for ; Thu, 10 May 2001 00:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4A7e4F42295; Thu, 10 May 2001 00:40:04 -0700 (PDT) (envelope-from gnats) Date: Thu, 10 May 2001 00:40:04 -0700 (PDT) Message-Id: <200105100740.f4A7e4F42295@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Jaeho Kang" Subject: Re: kern/27242: SIGHUP propagation failure to processes of switched user and the command may run infinitely Reply-To: "Jaeho Kang" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/27242; it has been noted by GNATS. From: "Jaeho Kang" To: , Cc: Subject: Re: kern/27242: SIGHUP propagation failure to processes of switched user and the command may run infinitely Date: Thu, 10 May 2001 16:38:32 +0900 Follwing patch for kernel may help to solve the problem. I could not guess side effect (e.g. security hole) of this patch. vm-freebsd# pwd /usr/src/sys/kern vm-freebsd# diff kern_sig.c.orig kern_sig.c 97a98 > * 20010509 - jhkang - add SIGHUP propagation via session (terminal?) 101c102 < ((sig) == SIGCONT && (q)->p_session == (p)->p_session)) --- > (((sig) == SIGCONT) || ((sig) == SIGHUP) && (q)->p_session == (p)->p_session)) the patch is avaliable at http://ai.ce.pusan.ac.kr/~jhkang/files/patch.kern.infinite-loop.20010509.jhkang --- Jaeho Kang jhkang@isofree.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message