summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
AgeCommit message (Expand)Author
2014-02-12Eliminate the exit sig handling, which was only invokable via thePhilip Guenther
2014-02-09Fix the lock order reversal problem in the code that stops tracedMark Kettenis
2014-01-24exit1() needs to do a final aggregation of the thread's [us]ticksPhilip Guenther
2014-01-21Setting p->p_p to NULL when it's still running isn't safe for statclock().Philip Guenther
2014-01-20Threads can't be zombies, only processes, so change zombproc to zombprocess,Philip Guenther
2014-01-20Move p_textvp from struct proc to struct process so that the exit codePhilip Guenther
2013-10-25Move the declarations for dogetrusage(), itimerround(), and dowait4()Philip Guenther
2013-10-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther
2013-09-14Snapshots for all archs have been built, so remove the T32 codePhilip Guenther
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
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