ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/unix_process.c
(Generate patch)

Comparing ray/src/common/unix_process.c (file contents):
Revision 3.13 by greg, Fri Mar 24 12:56:12 2017 UTC vs.
Revision 3.14 by greg, Tue May 14 18:37:36 2019 UTC

# Line 37 | Line 37 | char   *av[]
37                  return(0);
38          if (pipe(p0) < 0 || pipe(p1) < 0)
39                  return(-1);
40 <        if ((pd->pid = fork()) == 0) {  /* if child... */
40 > #ifdef BSD
41 >        if (compath != NULL)
42 >                pd->pid = vfork();      /* more efficient with exec() */
43 >        else
44 > #endif
45 >        pd->pid = fork();
46 >        if (pd->pid == 0) {             /* if child... */
47                  close(p0[1]);
48                  close(p1[0]);
49                  if (p0[0] != 0) {       /* connect p0 to stdin */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines