Ignore:
Timestamp:
Dec 9, 2008, 4:22:09 PM (11 years ago)
Author:
gz
Message:

Pass the signal number through to user handlers, use it to exit by resignalling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/lisp-kernel/pmcl-kernel.c

    r11482 r11498  
    733733{
    734734  if (signum == SIGINT) {
    735     lisp_global(INTFLAG) = (1 << fixnumshift);
     735    lisp_global(INTFLAG) = (((signum<<8) + 1) << fixnumshift);
    736736  }
    737737  else if (signum == SIGTERM) {
    738     lisp_global(INTFLAG) = (2 << fixnumshift);
     738    lisp_global(INTFLAG) = (((signum<<8) + 2) << fixnumshift);
     739  }
     740  else if (signum == SIGQUIT) {
     741    lisp_global(INTFLAG) = (((signum<<8) + 2) << fixnumshift);
    739742  }
    740743#ifdef DARWIN
Note: See TracChangeset for help on using the changeset viewer.