summaryrefslogtreecommitdiff
path: root/setsignal.c
Commit message (Collapse)AuthorAgeFilesLines
* If we get SIGCHLD, restart whatever system call it interrupted.Alexandra Kossovsky2013-04-141-0/+2
| | | | | | | | When compressing output with -z, we do so by creating a child process to run gzip and pipe to it, and we catch SIGCHLD to clean up after the child process. We don't want the SIGCHLD to show up as an "Interrupted system call" error, so we specify that SIGCHLD should restart, rather than interrupting, system calls.
* Have the configure script arrange that the Makefile define _U_guy2003-11-161-8/+4
| | | | | | | | | | appropriately, and that GNUmakefile and the MSVC++ project file define it apppriately, as we do with libpcap, rather than defining it in "interface.h". Undo the rcsid-shuffling and addition of extra #includes, as we no longer need to arrange that "interface.h" be included before using _U_ in an RCS ID or copyright.
* From Neil Spring:guy2003-11-151-4/+8
| | | | | | | | | | | use "_U_" in the definitions of "rcsid[]", to eliminate complaints about those variables being unused; move the definitions after the include of "interface.h", or add an include of "interface.h", so that "_U_" is defined. Include "config.h" before including "tcpdump-stdinc.h" in "missing/datalinks.c".
* Check whether we have "pcap_breakloop()", and use it if we do - it's aguy2003-11-041-11/+26
| | | | | | | | | | | safer way to terminate "pcap_loop()" in a signal handler (it just sets a flag, it doesn't muck with data structures that might have been in the middle of being updated). Have "setsignal()" not request SA_RESTART, so that if we call "pcap_breakloop()" in a signal handler and then return, we don't restart a call that was waiting for captured packets, we just make that call EINTR out.
* Added support for Win32, based on WinPcap.risso2002-08-011-2/+2
|
* remove gnuc.h and __deadassar2000-07-111-2/+1
|
* remove non-STDC codeassar2000-07-011-4/+1
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Initial revisionmcr1999-10-071-0/+78