| 194 | } |
| 195 | |
| 196 | static int test(int flags, int fixed) |
| 197 | { |
| 198 | struct data d; |
| 199 | void *tret; |
| 200 | int ret; |
| 201 | |
| 202 | ret = test_maccept(&d, flags, fixed); |
| 203 | if (ret) { |
| 204 | fprintf(stderr, "test conns=1 failed\n"); |
| 205 | return ret; |
| 206 | } |
| 207 | if (no_more_accept) |
| 208 | return T_EXIT_SKIP; |
| 209 | |
| 210 | pthread_join(d.thread, &tret); |
| 211 | |
| 212 | ret = test_maccept(&d, flags, fixed); |
| 213 | if (ret) { |
| 214 | fprintf(stderr, "test conns=MAX failed\n"); |
| 215 | return ret; |
| 216 | } |
| 217 | |
| 218 | pthread_join(d.thread, &tret); |
| 219 | return 0; |
| 220 | } |
| 221 | |
| 222 | int main(int argc, char *argv[]) |
| 223 | { |