Re: [Quickfix-users] ThreadedSocketInitiator/Acceptor + Application - occasional socket errors
Brought to you by:
orenmnero
From: Marcin G. <mar...@ar...> - 2013-03-26 18:29:35
|
Hi Mike, What signal this can be? I did simple tests with such sigaction: struct sigaction sa; sa.sa_handler = sigint_handler; sa.sa_flags = 0; sigemptyset(&sa.sa_mask); sigaction(SIGINT, &sa, NULL sigaction(SIGCHLD, &sa, NULL); sigaction(SIGHUP, &sa, NULL); where sigint_handler is void very simple function which is called when I press Ctrl+C however seems like it doesn't handle real INT from qf which causes session logout... any thoughts? Thx M. ----- Oryginalna wiadomość ----- Od: "Mike Gatny" <mg...@co...> Do: "Marcin Giedz" <mar...@ar...> DW: qui...@li... Wysłane: wtorek, 26 marzec 2013 17:16:17 Temat: Re: [Quickfix-users] ThreadedSocketInitiator/Acceptor + Application - occasional socket errors Looks like socket recv/send is returning EINTR, meaning that the thread received a signal during the syscall. Are you intentionally using posix signals in your program? If so, are you taking steps in your main program to block all signals, then explicitly handle them on one thread? Or are you perhaps unintentionally using signals, e.g. by using sleep(3) (from unistd.h) instead of nanosleep? -- Mike Gatny Connamara Systems, LLC |