aboutsummaryrefslogtreecommitdiff
path: root/proc/notify.c
Commit message (Collapse)AuthorAgeFilesLines
* proc: Use notify server implementation from libportsSergey Bugaev2022-08-101-93/+0
| | | | We can simply override proc_dead_name () to handle dead-name notifications.
* proc: Use ports_request_dead_name_notification ()Sergey Bugaev2022-08-101-26/+13
|
* Fix space styleSamuel Thibault2015-03-051-12/+12
|
* Fix proc crashesSamuel Thibault2014-11-271-2/+4
| | | | | * proc/notify.c (do_mach_notify_dead_name): When `pi' is NULL, immediately return EOPNOTSUPP.
* libports: fix notify_port_t receiver lookupsJustus Winter2014-04-061-12/+12
| | | | | | | | | | | | | | | | | * libports/Makefile (MIGSFLAGS): Include mig-mutate.h. * libports/mig-decls.h: New file. * libports/mig-mutate.h: Likewise. * libports/notify-dead-name.c: Fix receiver lookups. * libports/notify-no-senders.c: Likewise. * libports/notify-msg-accepted.c: Adjust function declaration. * libports/notify-port-deleted.c: Likewise. * libports/notify-port-destroyed.c: Likewise. * libports/notify-send-once.c: Likewise. * libports/ports.h: Likewise. * proc/Makefile (MIGSFLAGS): Include mig-mutate.h, move PROCESS mutators... * proc/mig-mutate.h: ... into a new file, add NOTIFY mutators. * proc/notify.c: Fix receiver lookups, adjust function declarations. * term/devio.c (ports_do_mach_notify_send_once): Adjust accordingly.
* Fix duplicate port deallocationSamuel Thibault2009-12-221-3/+2
| | | | | * proc/notify.c (do_mach_notify_dead_name): Do not call mach_port_deallocate on `deadport' on failure.
* 1999-03-11 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-03-121-3/+1
| | | | | | | | | | | | * notify.c (do_mach_notify_dead_name): Remove unnecessary braces. * msg.c (S_proc_setmsgport): Remove unused variable FOO. (S_proc_getmsgport): Only check if the message port is still alive if it is not MACH_PORT_NULL. Use mach_port_type instead of mach_port_get_refs to check if the port is dead. * mgt.c (S_proc_reassign): Use mach_port_destroy to release the old task port.
* Tue Mar 9 13:11:43 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-091-7/+1
| | | | | | | | | | | | | | * notify.c (do_mach_notify_dead_name): Don't check against P->p_msgport anymore. * msg.c (message_port_dead): Delete function. (S_proc_setmsgport): Don't request a dead-name notification anymore. (S_proc_getmsgport): Check to see if P->p_msgport is dead before returning it. * mgt.c (S_proc_reassign): Only use mach_port_deallocate to release P->msgport. (process_has_exited): Likewise. * proc.h (message_port_dead): Delete prototype.
* 1999-03-06 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-03-061-2/+7
| | | | | * notify.c (do_mach_notify_dead_name): Deallocate reference to DEADPORT.
* Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell1996-04-251-13/+9
|
* (do_mach_notify_no_senders): Don't use E->replyport.Roland McGrath1996-02-091-8/+6
|
* entered into RCSMichael I. Bushnell1994-08-151-2/+10
|
* Formerly notify.c.~3~Michael I. Bushnell1994-05-061-6/+6
|
* Formerly notify.c.~2~Michael I. Bushnell1994-03-221-0/+48
|
* Initial revisionMichael I. Bushnell1994-03-221-0/+58