From owner-cvs-all Mon Sep 30 17: 7:32 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E11237B404; Mon, 30 Sep 2002 17:07:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF1FE43E3B; Mon, 30 Sep 2002 17:07:29 -0700 (PDT) (envelope-from jmallett@FreeBSD.org) Received: from freefall.freebsd.org (jmallett@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9107TCo058992; Mon, 30 Sep 2002 17:07:29 -0700 (PDT) (envelope-from jmallett@freefall.freebsd.org) Received: (from jmallett@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9107Tkb058991; Mon, 30 Sep 2002 17:07:29 -0700 (PDT) Message-Id: <200210010007.g9107Tkb058991@freefall.freebsd.org> From: Juli Mallett Date: Mon, 30 Sep 2002 17:07:29 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/osf1 osf1_signal.c src/sys/compat/linprocfs linprocfs.c src/sys/compat/linux linux_misc.c linux_signal.c src/sys/compat/svr4 svr4_filio.c svr4_signal.c src/sys/conf files src/sys/fs/procfs procfs_ctl.c src/sys/kern init_main.c ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jmallett 2002/09/30 17:07:28 PDT Modified files: sys/alpha/osf1 osf1_signal.c sys/compat/linprocfs linprocfs.c sys/compat/linux linux_misc.c linux_signal.c sys/compat/svr4 svr4_filio.c svr4_signal.c sys/conf files sys/fs/procfs procfs_ctl.c sys/kern init_main.c kern_exit.c kern_fork.c kern_kthread.c kern_proc.c kern_sig.c subr_trap.c tty.c subr_sigq.c sys/sys ksiginfo.h proc.h Log: (Forced commit, to clarify previous commit of ksiginfo/signal queue code.) I've added a structure, kernel-private, to represent a pending or in-delivery signal, called `ksiginfo'. It is roughly analogous to the basic information that is exported by the POSIX interface 'siginfo_t', but more basic. I've added functions to allocate these structures, and further to wrap all signal operations using them. Once the operations are wrapped, I've added a TailQ (see queue(3)) of these structures to 'struct proc', and all pending signals are in that TailQ. When a signal is being delivered, it is dequeued from the list. Once I finish the spreading of ksiginfo throughout the tree, the dequeued structure will be delivered to the process in question, whereas currently and normally, the signal number is what is used. Revision Changes Path 1.21 +0 -0 src/sys/alpha/osf1/osf1_signal.c 1.57 +0 -0 src/sys/compat/linprocfs/linprocfs.c 1.132 +0 -0 src/sys/compat/linux/linux_misc.c 1.37 +0 -0 src/sys/compat/linux/linux_signal.c 1.18 +0 -0 src/sys/compat/svr4/svr4_filio.c 1.20 +0 -0 src/sys/compat/svr4/svr4_signal.c 1.708 +0 -0 src/sys/conf/files 1.46 +0 -0 src/sys/fs/procfs/procfs_ctl.c 1.209 +0 -0 src/sys/kern/init_main.c 1.179 +0 -0 src/sys/kern/kern_exit.c 1.166 +0 -0 src/sys/kern/kern_fork.c 1.26 +0 -0 src/sys/kern/kern_kthread.c 1.156 +0 -0 src/sys/kern/kern_proc.c 1.193 +9 -4 src/sys/kern/kern_sig.c 1.2 +17 -0 src/sys/kern/subr_sigq.c 1.226 +0 -0 src/sys/kern/subr_trap.c 1.187 +0 -0 src/sys/kern/tty.c 1.2 +2 -0 src/sys/sys/ksiginfo.h 1.263 +0 -0 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message