aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fork.c
blob: 4dbff87b014d7ab5136898bcdcf281dbf83a2d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <u.h>
#include <libc.h>
#include "9proc.h"
#undef fork

int
p9fork(void)
{
	int pid;

	pid = fork();
	_clearuproc();
	_p9uproc(0);
	return pid;
}