Changeset 2127 for trunk/src/libctests/glibc/posix/tst-execl2.c
- Timestamp:
- Jul 1, 2005, 4:11:41 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/posix/tst-execl2.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2126 r2127 4 4 #include <sys/stat.h> 5 5 6 /* Nonzero if the program gets called via `exec'. */ 7 static int restart; 8 #define CMDLINE_OPTIONS \ 9 { "restart", no_argument, &restart, 1 }, 6 10 7 11 static void prepare (int argc, char *argv[]); … … 46 50 do_test (void) 47 51 { 52 if (restart) 53 { 54 printf ("error, child shouldn't run!\n"); 55 return 1; 56 } 48 57 errno = 0; 49 execl (copy, copy, NULL);58 execl (copy, copy, "--restart", NULL); 50 59 51 60 if (errno != EACCES) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.