Removed blocking SIGPIPE, as this is now handled in sanei_thread library.

merge-requests/1/head
Gerhard Jaeger 2003-10-17 11:06:43 +00:00
rodzic bf9ea737d3
commit e36fac9d88
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -43,7 +43,7 @@
This backend is for testing frontends. This backend is for testing frontends.
*/ */
#define BUILD 25 #define BUILD 26
#include "../include/sane/config.h" #include "../include/sane/config.h"
@ -1276,7 +1276,6 @@ static int
reader_task (void *data) reader_task (void *data)
{ {
SANE_Status status; SANE_Status status;
sigset_t ignore_set;
struct SIGACTION act; struct SIGACTION act;
struct Test_Device *test_device = (struct Test_Device *) data; struct Test_Device *test_device = (struct Test_Device *) data;
@ -1293,10 +1292,6 @@ reader_task (void *data)
DBG (3, "reader_task started (as thread)\n"); DBG (3, "reader_task started (as thread)\n");
} }
/* block SIGPIPE */
sigemptyset (&ignore_set);
sigaddset (&ignore_set, SIGPIPE);
sigprocmask (SIG_SETMASK, &ignore_set, 0);
memset (&act, 0, sizeof (act)); memset (&act, 0, sizeof (act));
sigaction (SIGTERM, &act, 0); sigaction (SIGTERM, &act, 0);