summaryrefslogtreecommitdiff
path: root/src/process/fork.c
AgeCommit message (Collapse)AuthorLines
2011-04-17clean up handling of thread/nothread mode, lockingRich Felker-1/+1
2011-04-12speed up threaded forkRich Felker-2/+1
after fork, we have a new process and the pid is equal to the tid of the new main thread. there is no need to make two separate syscalls to obtain the same number.
2011-03-20global cleanup to use the new syscall interfaceRich Felker-3/+3
2011-03-09make fork properly initialize the main thread in the child processRich Felker-0/+7
2011-02-18add pthread_atfork interfaceRich Felker-3/+6
note that this presently does not handle consistency of the libc's own global state during forking. as per POSIX 2008, if the parent process was threaded, the child process may only call async-signal-safe functions until one of the exec-family functions is called, so the current behavior is believed to be conformant even if non-ideal. it may be improved at some later time.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+9