summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-07-25 16:54:11 +0000
committerderaadt <deraadt@openbsd.org>2001-07-25 16:54:11 +0000
commitb75706bc50976e7ef12a92a97e3df0aa5ad6e565 (patch)
tree3ee44199975ecf87d5cb8e8d3e389e0b6e77a3d2
parentRandom cleanups that generate noise in my cvs updates. (diff)
downloadwireguard-openbsd-b75706bc50976e7ef12a92a97e3df0aa5ad6e565.tar.xz
wireguard-openbsd-b75706bc50976e7ef12a92a97e3df0aa5ad6e565.zip
do not use vfork() unsafely
-rw-r--r--usr.bin/sup/src/run.c4
-rw-r--r--usr.bin/sup/src/sysent.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/sup/src/run.c b/usr.bin/sup/src/run.c
index 4956befe5b2..48adefb7fb5 100644
--- a/usr.bin/sup/src/run.c
+++ b/usr.bin/sup/src/run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: run.c,v 1.9 2001/05/07 19:26:03 millert Exp $ */
+/* $OpenBSD: run.c,v 1.10 2001/07/25 16:54:11 deraadt Exp $ */
/*
* Copyright (c) 1991 Carnegie Mellon University
@@ -201,7 +201,7 @@ dorun(name, argv, usepath)
struct sigaction ignoresig, intsig, quitsig;
int status;
- if ((pid = vfork()) == -1)
+ if ((pid = fork()) == -1)
return(-1); /* no more process's, so exit with error */
if (pid == 0) { /* child process */
diff --git a/usr.bin/sup/src/sysent.h b/usr.bin/sup/src/sysent.h
index b5fa0732640..607431a2d3e 100644
--- a/usr.bin/sup/src/sysent.h
+++ b/usr.bin/sup/src/sysent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysent.h,v 1.5 2001/05/02 22:56:54 millert Exp $ */
+/* $OpenBSD: sysent.h,v 1.6 2001/07/25 16:54:11 deraadt Exp $ */
/*
* Copyright (c) 1991 Carnegie Mellon University
@@ -118,7 +118,6 @@ extern int truncate(const char *, off_t);
extern int ftruncate(int, off_t);
extern int umask(int);
extern int unlink(const char *);
-extern int vfork(void);
extern void vhangup(void);
extern int write(int, void *, int);