summaryrefslogtreecommitdiff
path: root/proc/main.c
AgeCommit message (Collapse)Author
2001-04-152000-04-03 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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.
2000-03-172000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c (main): Use ports_get_send_right.
2000-03-122000-03-12 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* mgt.c (allocate_proc): Don't do mach_port_request_notification here. (proc_death_notify): New function, do it here instead. (complete_proc): Call proc_death_notify. * main.c (main): Call proc_death_notify on STARTUP_PROC after we have set its task port. * proc.h: Declare proc_death_notify.
1999-06-191999-06-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c (main): Remove commented-out wire_task_self call, #include.
1999-06-051999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* mgt.c (create_startup_proc): Don't call add_proc_to_hash here. * main.c (main): Do it here instead, after we have the task port.
1999-06-051999-06-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* mgt.c (allocate_proc, complete_proc): New functions, broken out of new_proc. Remove magic handling of PIDs 0 and 1. (new_proc): Now just call those two. Made static. (create_startup_proc): New function, also broken out of old new_proc. Do special setup for PID 1 (init) proc structure here. * proc.h: Update decls. * main.c (main): Use create_startup_proc for startup_proc, and allocate_proc + complete_proc (with PID 0) for self_proc.
1999-05-301999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c: Include <device/device.h>.
1999-05-231999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c (main): Set up console on stderr.
1999-05-021999-05-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c: Include <error.h>.
1999-05-021999-05-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* main.c (main): Use assert_perror. Give diagnostic for lack of bootstrap port.
1997-08-20Wed Aug 20 14:06:46 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* main.c (main): New args for ports_manage_port_operations_multithread.
1997-06-30(main):Miles Bader
Arg parsing added. HOLD variable removed. (argp_program_version): New variable. Include <argp.h> and <version.h>.
1996-07-18*** empty log message ***Michael I. Bushnell
1996-04-25 Many changes to support multi-threading. See ChangeLog.Michael I. Bushnell
1996-03-20(message_demuxer): Remove call to interrupt_server.Michael I. Bushnell
(global_lock): Provide definition.
1996-02-09(message_demuxer): Don't call proc_excrepl_server.Roland McGrath
1995-04-04(main): Missing decls.Michael I. Bushnell
1995-04-04(main): Wire text and data segment on startup to avoid failure modeMichael I. Bushnell
during non-standalone pseudo-crash.
1994-08-18entered into RCSMichael I. Bushnell
1994-08-15Formerly main.c.~12~Michael I. Bushnell
1994-06-28Formerly main.c.~10~Michael I. Bushnell
1994-06-27Formerly main.c.~9~Michael I. Bushnell
1994-05-12Formerly main.c.~8~Roland McGrath
1994-05-09Formerly main.c.~7~Michael I. Bushnell
1994-04-07Formerly main.c.~6~Michael I. Bushnell
1994-04-05Formerly main.c.~5~Michael I. Bushnell
1994-03-29Formerly main.c.~4~Michael I. Bushnell
1994-03-23Formerly main.c.~3~Michael I. Bushnell
1994-03-22Formerly main.c.~2~Michael I. Bushnell
1994-03-22Initial revisionMichael I. Bushnell