aboutsummaryrefslogtreecommitdiff
path: root/proc/msg.c
Commit message (Collapse)AuthorAgeFilesLines
* 2000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-04-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * host.c (S_proc_setexecdata): Check for memory allocation errors. Use memcpy, not bcopy. (S_proc_getexecdata): Likewise. (S_proc_execdata_notify): Check return of malloc. (S_proc_register_version): Likewise. (initialize_version_info): Add asserts. * info.c (S_proc_pid2task): Do not bother searching for the pid if we do not have a valid caller. (S_proc_pid2proc): Likewise. Use memcpy, not bcopy. (S_proc_getprocinfo): Doc fixes. Use MAP_FAILED not -1. Use memcpy, not bcopy. (S_proc_getloginpids): Check return value of malloc. Use realloc correctly. (S_proc_setlogin): Check return value of malloc. * main.c (main): Assert allocate_proc. * mgt.c (make_ids): Check return value of malloc and fail accordingly. (S_proc_reauthenticate): Check return value of make_ids and fail accordingly. (S_proc_child): Call task_find after we know that we were passed a valid child. (S_proc_reassign): Likewise. (S_proc_handle_exceptions): Use memcpy, not bcopy. (allocate_proc): Check return value of ports_create_port and fail accordingly. (create_startup_proc): Add asserts. (complete_proc): Do not assume the length of "<none>". * msg.c (S_proc_getmsgport): Call pid_find_allow_zombie after we know we were passed a valid caller. * pgrp.c: Include assert.h. (new_pgrp): Check return value of malloc and fail accordingly. (new_session): Likewise. (boot_setsid): Assert sess. (S_proc_getsessionpids): Use MAP_FAILED not -1. (S_proc_getsessionppids): Likewise. (S_proc_getpgrppids): Likewise. * wait.c (S_proc_wait): Use memset, not bzero.
* 1999-05-01 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-05-041-17/+28
| | | | | | | | * msg.c (check_msgport_death): New function. (S_proc_getmsgport): Use it. * proc.h (check_msgport_death): Provide prototype. * info.c (S_proc_getprocinfo): Call check_msgport_death to make sure that our knowledge about P's message port is up to date.
* 1999-03-11 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell1999-03-121-13/+16
| | | | | | | | | | | | * 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-16/+17
| | | | | | | | | | | | | | * 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.
* (S_proc_getmsgport): Deal with PID dying while we're waiting.Miles Bader1996-07-201-5/+8
|
* *** empty log message ***Michael I. Bushnell1996-07-191-0/+7
|
* *** empty log message ***Michael I. Bushnell1996-07-181-1/+1
|
* (S_proc_setmsgport): Add OLDMSGPORT_TYPE param.Miles Bader1996-06-201-1/+4
|
* Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell1996-04-251-15/+28
|
* (abort_getmsgport): Delete function.Michael I. Bushnell1996-03-201-36/+9
| | | | | | | | (check_message_return): Use condition_broadcast instead of continuation stuff. (check_message_dying): Likewise. (S_proc_getmsgport): Use condition_wait instead of continuation stuff; never return EBUSY.
* (S_proc_setmsgport): Only do the RPC reply by hand for proc. Also,Michael I. Bushnell1995-11-091-8/+11
| | | | return the correct port in that by-hand reply.
* (S_proc_getmsgport): Also return EBUSY if P->waiting, because bothMichael I. Bushnell1995-11-091-2/+2
| | | | share the same memory in the proc structure.
* entered into RCSMichael I. Bushnell1994-07-221-1/+1
|
* Formerly msg.c.~6~Roland McGrath1994-05-121-3/+9
|
* Formerly msg.c.~5~Michael I. Bushnell1994-05-091-0/+4
|
* Formerly msg.c.~4~Michael I. Bushnell1994-05-061-5/+2
|
* Formerly msg.c.~3~Michael I. Bushnell1994-03-241-76/+31
|
* Formerly msg.c.~2~Michael I. Bushnell1994-03-221-35/+84
|
* Initial revisionMichael I. Bushnell1994-03-221-0/+120