* callproc.c (Fcall_process): Fix vfork portability problems.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Nov 2012 22:33:35 +0000 (14:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Nov 2012 22:33:35 +0000 (14:33 -0800)
commit60aeceb8c41fffee197d43e7eae2b46d9e3fcc74
treee29f8adf206ac107b41ea6769d17589381da78fe
parente7c8fcc44eff6dbc6ccb6ebc7f6389233ee516ab
* callproc.c (Fcall_process): Fix vfork portability problems.

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.
src/ChangeLog
src/callproc.c