Ignore:
Timestamp:
Jan 21, 2007, 1:29:17 AM (19 years ago)
Author:
bird
Message:

Attempt at dealing with deadlocked kmk on Ctrl-C by dispatching the SIGINT/SIGBREAK on the main thread instead of the ctrl-event thread (Windows).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/commands.c

    r765 r778  
    442442  exit (10);
    443443#else /* not Amiga */
    444 #ifdef WINDOWS32
     444#if defined(WINDOWS32) && !defined(CONFIG_NEW_WIN32_CTRL_EVENT)
    445445  extern HANDLE main_thread;
    446446
     
    516516
    517517  remove_intermediates (1);
    518 
    519518#ifdef SIGQUIT
    520519  if (sig == SIGQUIT)
     
    525524
    526525#ifdef WINDOWS32
     526#ifndef CONFIG_NEW_WIN32_CTRL_EVENT
    527527  if (main_thread)
    528528    CloseHandle (main_thread);
     529#endif /* !CONFIG_NEW_WIN32_CTRL_EVENT */
    529530  /* Cannot call W32_kill with a pid (it needs a handle).  The exit
    530531     status of 130 emulates what happens in Bash.  */
Note: See TracChangeset for help on using the changeset viewer.