Changeset 7565f8f


Ignore:
Timestamp:
Aug 15, 2009, 7:08:13 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
defe4a3
Parents:
cff58b4
git-author:
Anders Kaseorg <andersk@mit.edu> (08/03/09 23:35:22)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:13)
Message:
owl_popexec_new: Replace execv with simpler execl.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    r4d86e06 r7565f8f  
    6161  } else {
    6262    /* in the child process */
    63     char *argv[4];
    6463    int i;
    6564    int fdlimit = sysconf(_SC_OPEN_MAX);
     
    7271    close(child_write_fd);
    7372
    74     argv[0] = "sh";
    75     argv[1] = "-c";
    76     argv[2] = command;
    77     argv[3] = 0;
    78     execv("/bin/sh", argv);
     73    execl("/bin/sh", "sh", "-c", command, (const char *)NULL);
    7974    _exit(127);
    8075  }
Note: See TracChangeset for help on using the changeset viewer.