Changeset 7565f8f
- Timestamp:
- Aug 15, 2009, 7:08:13 PM (15 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
popexec.c
r4d86e06 r7565f8f 61 61 } else { 62 62 /* in the child process */ 63 char *argv[4];64 63 int i; 65 64 int fdlimit = sysconf(_SC_OPEN_MAX); … … 72 71 close(child_write_fd); 73 72 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); 79 74 _exit(127); 80 75 }
Note: See TracChangeset
for help on using the changeset viewer.