summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-10 19:18:30 +0000
committerbde <bde@FreeBSD.org>1998-10-10 19:18:30 +0000
commit7a03a3002aa4bfb3db775583a58a89908b7ae290 (patch)
tree6222d1b466e4f45ce1c1633befadf9ef1c338430 /usr.bin/mail
parent0d02aaceb91d42dfaac22d30bacee101b095d096 (diff)
downloadFreeBSD-src-7a03a3002aa4bfb3db775583a58a89908b7ae290.zip
FreeBSD-src-7a03a3002aa4bfb3db775583a58a89908b7ae290.tar.gz
vfork -> fork. This home made popen() had the same bug as the library
popen(), but worse. The child calls execvp(), which calls malloc() a bit more than execl(), and it calls non-library functions that call malloc() and who-knows-what else (stdio is called in at least some error cases).
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mail/popen.c b/usr.bin/mail/popen.c
index 467d24a..3d877fa 100644
--- a/usr.bin/mail/popen.c
+++ b/usr.bin/mail/popen.c
@@ -231,7 +231,7 @@ start_command(cmd, mask, infd, outfd, a0, a1, a2)
{
int pid;
- if ((pid = vfork()) < 0) {
+ if ((pid = fork()) < 0) {
perror("fork");
return -1;
}
OpenPOWER on IntegriCloud