From 148628b616b5c29ba6340d65fc3ddbcabba6e67a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 2 May 2000 02:23:41 +0000 Subject: Added sys_fork() and sys_getpid() functions to stop the overhead of doing a system call every time we want to just get our pid. Jeremy. --- source/lib/smbrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/lib/smbrun.c') diff --git a/source/lib/smbrun.c b/source/lib/smbrun.c index 8d666980b38..81dfc10dfb1 100644 --- a/source/lib/smbrun.c +++ b/source/lib/smbrun.c @@ -124,7 +124,7 @@ int smbrun(char *cmd,char *outfile,BOOL shared) CatchChildLeaveStatus(); - if ((pid=fork()) < 0) { + if ((pid=sys_fork()) < 0) { DEBUG(0,("smbrun: fork failed with error %s\n", strerror(errno) )); CatchChild(); return errno; -- cgit