• Paul Eggert's avatar
    * callproc.c (Fcall_process): Fix vfork portability problems. · 60aeceb8
    Paul Eggert authored
    Do not assume that fd[0], count, filefd, and save_environ survive
    vfork.  Fix bug whereby wrong errno value could be reported for
    pipe failure.  Some minor cleanups, too, as follows.  Move buf and
    bufsize to the context where they're needed.  Change new_argv to
    be of type char **, as this is more convenient and avoids casts.
    (CALLPROC_BUFFER_SIZE_MIN, CALLPROC_BUFFER_SIZE_MAX):
    Now local constants, not macros.
    60aeceb8
callproc.c 49.3 KB