diff options
author | rsc <devnull@localhost> | 2003-10-01 02:50:57 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-10-01 02:50:57 +0000 |
commit | a995e477ffb4dd1184da87e9e46a9e57f3178c63 (patch) | |
tree | 5b2260becdfb1aaf8b67fd91223b7d214b7e9451 /src/lib9/ffork-Linux.c | |
parent | e182749a982e415fba755bc1035c35da5c4fe606 (diff) | |
download | plan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.tar.gz plan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.tar.bz2 plan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.zip |
Various tweaks to make things run on Mac OS.
The main change is the use of pthread to implement ffork.
Diffstat (limited to 'src/lib9/ffork-Linux.c')
-rw-r--r-- | src/lib9/ffork-Linux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib9/ffork-Linux.c b/src/lib9/ffork-Linux.c index aad80041..3b5c8ee0 100644 --- a/src/lib9/ffork-Linux.c +++ b/src/lib9/ffork-Linux.c @@ -37,3 +37,9 @@ ffork(int flags, void (*fn)(void*), void *arg) return pid; } +int +getfforkid(void) +{ + return getpid(); +} + |