Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 1998 12:30:45 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/lib/libc/gen popen.c
Message-ID:  <199810101930.MAA28329@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

bde         1998/10/10 12:30:45 PDT

  Modified files:
    lib/libc/gen         popen.c 
  Log:
  vfork -> fork.  The child calls execl() which calls malloc(), so
  vfork() can't be used.  We could use alloca() in execl() so that
  it can be called between vfork() and execve(), but a "portable"
  popen() shouldn't depend on this.  Calling execle() instead of
  execl() should be fairly safe, since execle() is supposed to be
  callable from signal handlers and signal handlers can't call
  malloc().  However, execle() is broken.
  
  Revision  Changes    Path
  1.10      +1 -1      src/lib/libc/gen/popen.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810101930.MAA28329>