minix/etc
David van Moolenbroek 146d642631 PM: generic process event publish/subscribe system
Now that there are services other than PM and VFS that implement
userland system calls directly, these services may need to know about
events related to user processes.  In particular, signal delivery may
have to interrupt blocking system calls, and certain cleanup tasks may
have to be performed after a user process exits.

This patch aims to implement a generic, lasting solution for this
problem, by allowing services to subscribe to "signal delivered"
and/or "process exit" events from PM.  PM publishes such events by
sending messages to its subscribed services, which must then reply an
acknowledgment message.

For now, only the two aforementioned events are implemented, and only
the IPC service makes use of the process event facility.

The new process event publish/subscribe system replaces the previous
VM notify-sig/watch-exit/query-exit system, which was unsound: 1) it
allowed subscription to events from individual processes, and suffered
from fundamental race conditions as a result; 2) it relied on "not too
many" processes making use of the IPC server functionality in order to
avoid loss of notifications.  In addition, it had the "ipc" process
name hardcoded, did not distinguish between signal delivery and exits,
and added a roundtrip to VM for all events from all processes.

Change-Id: I75ebad4bc54e646c6433f473294cb4003b2c3430
2016-01-01 01:28:36 +01:00
..
defaults
devmand
fonts
mtree NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
rc.capes
root NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
skel Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
usr Import NetBSD dev_mkdb(8) 2016-01-01 01:28:28 +01:00
boot.cfg.default
crontab
csh.cshrc Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
csh.login Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
csh.logout Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
gettytab
group
hostname.file
inet.conf
Makefile Install xorg.conf which loads all extensions. 2016-01-01 01:28:04 +01:00
Makefile.params NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
man.conf NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
master.passwd
mk.conf
motd Set the motd to point to a wiki page. 2014-09-13 23:56:50 +02:00
newfstab.sh
profile Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
protocols NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
rc Add MIB service, sysctl(2) support 2016-01-01 01:28:16 +01:00
rc.cd New image framework generation 2015-10-10 19:09:35 +02:00
rc.conf NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
rc.daemons.dist Import NetBSD rcmd, rcp, rsh, rshd 2015-09-23 12:03:06 +00:00
rc.shutdown
rc.subr NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
resolv.conf
rs.inet rs: New RS. 2015-09-16 15:30:48 +00:00
rs.single
services NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
shells
shrc Import NetBSD shell environment files 2014-11-10 16:48:56 +01:00
syslog.conf Import NetBSD syslogd(8) 2015-07-26 11:57:04 +00:00
system.conf PM: generic process event publish/subscribe system 2016-01-01 01:28:36 +01:00
termcap
termcap.big
ttys
utmp
xorg.conf Install xorg.conf which loads all extensions. 2016-01-01 01:28:04 +01:00