summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
AgeCommit message (Expand)Author
2013-06-05factor out pid allocation to functions. add a small cache of recentlyTed Unangst
2013-06-01some small style changes that are distracting me from seeing a real bugTed Unangst
2013-05-07Merge from FreeBSD, r191313Philip Guenther
2013-04-06rthreads are always enabled. remove the sysctl.Ted Unangst
2013-03-30vrele() is a tricky beast. it can sleep if the refcount hits zero,Ted Unangst
2013-03-28do not include machine/cpu.h from a .c file; it is the responsibility ofTheo de Raadt
2012-09-08Plug a race where we're trying to kill a traced process while it is aleadyMark Kettenis
2012-08-02Apply profiling to all threads instead of just the thread that calledPhilip Guenthe
2012-07-11exit1(EXIT_THREAD) needs to call single_thread_check() so that itPhilip Guenthe
2012-07-09The linux emulation exit hook needs to be able to sleep, so call itPhilip Guenthe
2012-04-14If single threading is active, drirect the SIGKILL signal we send to orphanedMark Kettenis
2012-04-13Backout a tiny part of the previous commit. Decrementing ps_singlecount inMark Kettenis
2012-04-13First stab at making ptrace(2) usable for debugging multi-threaded programs.Mark Kettenis
2012-04-11Move the P_WAITED flag from struct proc to struct process.Mark Kettenis
2012-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
2012-04-06ruadd() does the summing of system and user times, so doing so againPhilip Guenthe
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
2012-03-10Add PS_EXITING to better differentiate between the process exiting andPhilip Guenthe
2012-02-20First steps for making ptrace work with rthreads:Philip Guenthe
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
2011-12-14Handle rthreads consistently in ktrace by moving the flags and vnode intoPhilip Guenthe
2011-12-11Suspend other rthreads before dumping core or execing; make them exitPhilip Guenthe
2011-07-25sys_wait4 properly returns int. ok deraadtTed Unangst
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
2011-04-03Move PPWAIT flag from struct proc to process, so that rthreads inPhilip Guenthe
2010-08-02Fix knote handling for exiting processes: when triggering a NOTE_EXITPhilip Guenthe
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
2010-07-19Rollback the allproclk and fileheadlk addition. When grabbing anPhilip Guenthe
2010-06-29We always copy struct pcred when creating a new process, so the referencePhilip Guenthe
2010-06-29Eliminate RTHREADS kernel option in favor of a sysctl. The actual statusTed Unangst
2010-05-26Bad tedu, no cookie.Owain Ainsworth
2010-05-18move knote list to struct process. ok guentherTed Unangst
2010-03-24Add a rwlock around the filehead and allproc lists, mainly to protectTed Unangst
2009-12-20When using ptrace(), death of the traced process should always sendPhilip Guenthe
2009-12-20svr4_sys_waitsys() was seemingly implemented by copying sys_wait4()Philip Guenthe
2009-11-27Change threxit() to take a pointer to a pid_t to zero out from thePhilip Guenthe
2009-10-05Don't drop the big lock at the end of exit1(), but move it into the middle ofTheo de Raadt
2009-06-24Remove extra psignal/wakeup in exit1() which can cause the parent toKurt Miller
2009-04-03Fix SEM_UNDO handling for rthreads: use the struct process* insteadPhilip Guenthe
2009-03-26Remove cpu_wait(). It's original use was to be called from the reaper soOwain Ainsworth
2008-12-16Move the functionality of psignal() to a new function ptsignal()Philip Guenthe
2008-12-11a little bit of paranoiaTheo de Raadt
2008-11-06remove a really stupid comment. Duh, of course it can blockTheo de Raadt
2008-10-31accidental commit ... backoutTheo de Raadt
2008-10-31kern_sysctl.cTheo de Raadt
2008-10-30Use msleep() in the reaper to make it not lose events. Based on discussionTheo de Raadt
2008-10-14Back-in; problems were apparently elsewhere.Philip Guenthe