speed up threaded fork
authorRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 21:52:14 +0000 (17:52 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 21:52:14 +0000 (17:52 -0400)
commite2915eeeea244d3818d5eb7532ed35c6cf43c8fd
tree9b4038abca8971234ef2d63d9cabef950c6229c7
parent0913560a3ffd4572d926b4f9bed3dbf3e6a1b3f0
speed up threaded fork

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.
src/process/fork.c