summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
AgeCommit message (Expand)Author
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
2013-03-14the 5.1 era tfork syscall claws its way out of the grave. we failed toTed Unangst
2013-03-02No longer need the 5.1 version of the __tfork syscallPhilip Guenther
2012-11-19If uvm_km_kmemalloc_pla() fails when just creating a thread (and not aPhilip Guenthe
2012-08-02Apply profiling to all threads instead of just the thread that calledPhilip Guenthe
2012-06-21__tfork() needs to set the stack address of the new thread in the kernel,Philip Guenthe
2012-05-10Only set a process's start time when starting the main thread. There'sPhilip Guenthe
2012-04-13First stab at making ptrace(2) usable for debugging multi-threaded programs.Mark Kettenis
2012-04-12remove rfork(); ok guenther miodTheo de Raadt