Date: Sat, 10 Oct 1998 08:30:00 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8252: popen/pclose leaks Message-ID: <199810101530.IAA20669@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/8252; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: FreeBSD-gnats-submit@FreeBSD.ORG, zerium@webindex.no Cc: Subject: Re: kern/8252: popen/pclose leaks Date: Sun, 11 Oct 1998 01:22:31 +1000 >This is only a problem in v3.0, not in v2.2.x. > >The RCS diff between the popen.c in v2.2 and v3.0 is null, nil, no, >nothing. I'm not sure if the libc function calls leaks or if it's a kernel >problem. execl() leaks if vfork() is actually vfork(). Global data should not be changed between vfork() and execve(), but execl() calls malloc(). The simple fix (a tiny pessimization) is to replace vfork() by fork() in popen(). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810101530.IAA20669>