Mercurial > urweb
comparison src/c/driver.c @ 505:e18c747dd945
Ignore SIGPIPE
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 23 Nov 2008 11:47:28 -0500 |
parents | 8875ff2e85dc |
children | b3b06fef7bb5 |
comparison
equal
deleted
inserted
replaced
504:1834dd10dbf4 | 505:e18c747dd945 |
---|---|
311 struct sockaddr_in their_addr; // connector's address information | 311 struct sockaddr_in their_addr; // connector's address information |
312 int sin_size, yes = 1; | 312 int sin_size, yes = 1; |
313 int uw_port = 8080, nthreads = 1, i, *names, opt; | 313 int uw_port = 8080, nthreads = 1, i, *names, opt; |
314 | 314 |
315 signal(SIGINT, sigint); | 315 signal(SIGINT, sigint); |
316 | 316 signal(SIGPIPE, SIG_IGN); |
317 | |
317 while ((opt = getopt(argc, argv, "hp:t:")) != -1) { | 318 while ((opt = getopt(argc, argv, "hp:t:")) != -1) { |
318 switch (opt) { | 319 switch (opt) { |
319 case '?': | 320 case '?': |
320 fprintf(stderr, "Unknown command-line option"); | 321 fprintf(stderr, "Unknown command-line option"); |
321 help(argv[0]); | 322 help(argv[0]); |