summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
AgeCommit message (Expand)Author
2017-02-12Split up fork1():Philip Guenther
2017-02-08Delete the obsolete fork/exec/exit emulation hooks.Philip Guenther
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-10-22Adjust allocpid() to take into account lastpidPhilip Guenther
2016-10-15Process groups can't be removed if a zombie process is in them, soPhilip Guenther
2016-09-03Inherit PS_WXNEEDED in forked processes.Jeremie Courreges-Anglas
2016-08-31proc_trampoline_mp hasn't needed curproc since 2011Tom Cosgrove
2016-04-25remove systrace remnantsTed Unangst
2016-04-25boom goes the dynamiteTed Unangst
2016-03-11increase size of oldpids to 128 to prevent mod bias when idx wraps.Ted Unangst
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-09-11Only include <sys/tame.h> in the .c files that need itPhilip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featureTheo de Raadt
2015-03-14add sys/atomic.h back for membar_* needed for at least armv7Jonathan Gray
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-10Factor out the common bits of process_new() and main()'s code forPhilip Guenther
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
2014-11-03include sys/unistd.h where needed instead of indirect reliance. ok jsgTed Unangst
2014-11-03pass size argument to free()Theo de Raadt
2014-09-08Delete procfs; it's always had races and is now unused: no one noticed forPhilip Guenther
2014-07-13KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)Masao Uebayashi
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-11Use membar_producer() to force visibility instead of misusingPhilip Guenther
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-07-07fork1: FORK_THREAD requires FORK_SHAREFILESMatthew Dempsky
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
2014-05-15Move from struct proc to process the reference-count-holding pointersPhilip Guenther
2014-05-06Include <sys/vmmeter.h> directly instead of relying on it beingMartin Pieuchot
2014-05-04Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,Philip Guenther
2014-05-03Move the u-area allocation and pmap-magic logic to its own functionPhilip Guenther
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
2014-03-28Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofMartin Pieuchot
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
2014-02-12Eliminate the exit sig handling, which was only invokable via thePhilip Guenther
2014-02-10arc4random_uniform() returns a value strictly less than its argument; fixPhilip 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-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther
2013-08-14The last user of the old __tfork() was updated to the current one,Philip Guenther
2013-06-11convert some easy bcopy to memcpy and clean up fdexpand a bit.Ted Unangst
2013-06-06Prevent idle thread from being stolen on startup.Christiano F. Haesbaert
2013-06-05factor out pid allocation to functions. add a small cache of recentlyTed Unangst
2013-06-03When creating a thread, don't add it to the process's thread listPhilip Guenther
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
2013-06-01As found by kurt, there's a twisty race between exit1 and fork1Ted Unangst
2013-04-06rthreads are always enabled. remove the sysctl.Ted Unangst