comparison mcabber/src/main.c @ 413:f7e4b0424081

Ignore SIGPIPE
author Mikael Berthe <mikael@lilotux.net>
date Tue, 30 Aug 2005 21:25:16 +0200
parents fb2325d24d13
children 5692c3a13202
comparison
equal deleted inserted replaced
412:9c640ee3bae3 413:f7e4b0424081
173 credits(); 173 credits();
174 174
175 signal(SIGTERM, sig_handler); 175 signal(SIGTERM, sig_handler);
176 signal(SIGINT, sig_handler); 176 signal(SIGINT, sig_handler);
177 signal(SIGCHLD, sig_handler); 177 signal(SIGCHLD, sig_handler);
178 signal(SIGPIPE, SIG_IGN);
178 179
179 /* Parse command line options */ 180 /* Parse command line options */
180 while (1) { 181 while (1) {
181 int c = getopt(argc, argv, "hf:"); 182 int c = getopt(argc, argv, "hf:");
182 if (c == -1) { 183 if (c == -1) {