Changeset 11331


Ignore:
Timestamp:
Nov 9, 2008, 10:28:17 PM (11 years ago)
Author:
gb
Message:

When masking "all" signals, leave SIGTRAP (trace, breakpoints)
unmasked on FreeBSD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-exceptions.c

    r11249 r11331  
    12221222  sigset_t mask;
    12231223  sigfillset(&mask);
     1224#ifdef FREEBSD
     1225  sigdelset(&mask,SIGTRAP);
     1226#endif
    12241227 
    12251228  pthread_sigmask(SIG_SETMASK,&mask, NULL);
     
    17081711#ifdef FREEBSD
    17091712  /* Strange FreeBSD behavior wrt synchronous signals */
    1710   sigdelset(&sa.sa_mask,SIGNUM_FOR_INTN_TRAP);
    17111713  sigdelset(&sa.sa_mask,SIGTRAP);  /* let GDB work */
    1712   sigdelset(&sa.sa_mask,SIGILL);
    1713   sigdelset(&sa.sa_mask,SIGFPE);
    1714   sigdelset(&sa.sa_mask,SIGSEGV);
    17151714#endif
    17161715  sa.sa_flags =
Note: See TracChangeset for help on using the changeset viewer.