Print this page
11841 badseg test times out


 121                 func();
 122                 exit(EXIT_SUCCESS);
 123         case -1:
 124                 exit(EXIT_FAILURE);
 125         default:
 126                 (void) waitpid(pid, NULL, 0);
 127                 return;
 128         }
 129 
 130 }
 131 
 132 int
 133 main(int argc, char *argv[])
 134 {
 135         struct rlimit rl = { 0, };
 136 
 137         if (setrlimit(RLIMIT_CORE, &rl) != 0) {
 138                 err(EXIT_FAILURE, "failed to disable cores");
 139         }
 140 
 141         for (selector = 0; selector < 8194; selector++) {
 142                 inchild(resetcs);
 143                 inchild(resetds);
 144                 inchild(resetes);
 145                 inchild(resetfs);
 146                 inchild(resetgs);
 147                 inchild(resetss);
 148                 inchild(badds);
 149                 inchild(bades);
 150                 inchild(badfs);
 151                 inchild(badgs);
 152                 inchild(badss);
 153         }
 154 
 155         exit(EXIT_SUCCESS);
 156 }


 121                 func();
 122                 exit(EXIT_SUCCESS);
 123         case -1:
 124                 exit(EXIT_FAILURE);
 125         default:
 126                 (void) waitpid(pid, NULL, 0);
 127                 return;
 128         }
 129 
 130 }
 131 
 132 int
 133 main(int argc, char *argv[])
 134 {
 135         struct rlimit rl = { 0, };
 136 
 137         if (setrlimit(RLIMIT_CORE, &rl) != 0) {
 138                 err(EXIT_FAILURE, "failed to disable cores");
 139         }
 140 
 141         for (selector = 0; selector < 512; selector++) {
 142                 inchild(resetcs);
 143                 inchild(resetds);
 144                 inchild(resetes);
 145                 inchild(resetfs);
 146                 inchild(resetgs);
 147                 inchild(resetss);
 148                 inchild(badds);
 149                 inchild(bades);
 150                 inchild(badfs);
 151                 inchild(badgs);
 152                 inchild(badss);
 153         }
 154 
 155         exit(EXIT_SUCCESS);
 156 }