summaryrefslogtreecommitdiff
path: root/proc/wait.c
AgeCommit message (Collapse)Author
2001-08-062001-08-06 Roland McGrath <roland@frob.com>Roland McGrath
* wait.c (S_proc_wait: reap): Set *PID_STATUS to CHILD->p_pid. Reported by Neal H Walfield <neal@cs.uml.edu>.
2001-08-052001-08-05 Roland McGrath <roland@frob.com>Roland McGrath
* wait.c (sample_rusage): New function. (S_proc_mark_exit): Call it.
2001-08-042001-08-04 Roland McGrath <roland@frob.com>Roland McGrath
* proc.h (struct proc): New members p_rusage, p_child_rusage. * wait.c (rusage_add): New static function. (alert_parent): Use it to add dead child's p_rusage into parent's p_child_rusage. (S_proc_wait): Fill *RU out param with CHILD->p_rusage, not just zeros. Rewrote subfunction child_ready and its two callers into new subfunction reap to reduce duplicated code.
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* host.c: Doc fix: ``Implement foo as described in <hurd/proc.defs>'' => ``Implement foo as described in <hurd/process.defs>'' * info.c: Likewise. * mgt.c: Likewise. * pgrp.c: Likewise. * wait.c: Likewise. * 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.
1996-07-16(EWOULDBLOCK): Define to work around new libc bug.Michael I. Bushnell
1996-05-09(S_proc_wait): New parm SIGCODE; return p_sigcode in it.Michael I. Bushnell
(S_proc_mark_stop): New parm SIGCODE; record it. (S_proc_mark_exit): Likewise. (alert_parent): Set P->p_sigcode if process is dying irregularly.
1996-04-25 Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell
1996-03-20(waiting_parent_cares): Delete function.Michael I. Bushnell
Don't include "interrupt_S.h". (alent_parent): Unconditionally enqueue zombie. Use condition_broadcast instead of continuation stuff. (S_interrupt_operation): Delete function. (abort_wait): Delete function. (reparent_zombies): Likewise. (S_proc_mark_stop): Likewise. (S_proc_wait): Use condition_wait instead of continuation stuff; never return EBUSY.
1995-11-21(S_interrupt_operation): Include new seqno parameter.Michael I. Bushnell
1995-11-14(S_proc_wait): `p->msgportwait' ==> `p->p_msgportwait' typo fix.Michael I. Bushnell
1995-11-09(S_proc_wait): Also return EBUSY if P->msgportwait, because both shareMichael I. Bushnell
the same memory in the proc structure.
1995-10-31(struct zombie): Deleted; now in proc.h.Michael I. Bushnell
(zombie_list): Likewise.
1995-07-22(zombie_check_pid): Typo.Michael I. Bushnell
1995-07-22(zombie_check_pid): Examine Z->pgrp too.Michael I. Bushnell
1995-04-26(S_proc_wait): Use `waiter_cares', not `waiting_parent_cares' inMichael I. Bushnell
zombie check.
1995-04-18(reparent_zombies): Send SIGCHLD signal to init.Michael I. Bushnell
1995-04-18(S_proc_wait): Don't return ESRCH; return ECHILD.Michael I. Bushnell
1995-04-06(waiter_cares, waiting_parent_cares): New functions.Roland McGrath
(alert_parent, reparent_zombies, S_proc_wait, S_proc_mark_stop): Use them.
1994-08-22entered into RCSMichael I. Bushnell
1994-08-22Formerly wait.c.~10~Roland McGrath
1994-07-22Formerly wait.c.~9~Michael I. Bushnell
1994-07-22Formerly wait.c.~8~Michael I. Bushnell
1994-07-20Formerly wait.c.~7~Michael I. Bushnell
1994-06-30Formerly wait.c.~6~Michael I. Bushnell
1994-06-30Formerly wait.c.~5~Roland McGrath
1994-05-06Formerly wait.c.~4~Michael I. Bushnell
1994-04-08Formerly wait.c.~3~Michael I. Bushnell
1994-03-22Formerly wait.c.~2~Michael I. Bushnell
1994-03-22Initial revisionMichael I. Bushnell