Ignore:
Timestamp:
Jul 1, 2005, 4:11:41 AM (20 years ago)
Author:
bird
Message:

Don't execute in loop!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/posix/tst-execl2.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2126 r2127  
    44#include <sys/stat.h>
    55
     6/* Nonzero if the program gets called via `exec'.  */
     7static int restart;
     8#define CMDLINE_OPTIONS \
     9  { "restart", no_argument, &restart, 1 },
    610
    711static void prepare (int argc, char *argv[]);
     
    4650do_test (void)
    4751{
     52  if (restart)
     53    {
     54      printf ("error, child shouldn't run!\n");
     55      return 1;
     56    }
    4857  errno = 0;
    49   execl (copy, copy, NULL);
     58  execl (copy, copy, "--restart", NULL);
    5059
    5160  if (errno != EACCES)
Note: See TracChangeset for help on using the changeset viewer.