Show
Ignore:
Timestamp:
08/18/06 08:35:31 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/alloc.c

    r4140 r4148  
    131131  do                                            \ 
    132132    {                                           \ 
    133       pthread_mutex_lock (&alloc_mutex);        \ 
    134       if (pthread_self () == main_thread)       \ 
    135         BLOCK_INPUT;                            \ 
     133      if (!in_sighandler)                       \ 
     134        {                                       \ 
     135           pthread_mutex_lock (&alloc_mutex);   \ 
     136           if (pthread_self () == main_thread)  \ 
     137             BLOCK_INPUT;                       \ 
     138           else                                 \ 
     139             sigblock (sigmask (SIGIO));        \ 
     140        }                                       \ 
    136141    }                                           \ 
    137142  while (0) 
     
    139144  do                                            \ 
    140145    {                                           \ 
    141       if (pthread_self () == main_thread)       \ 
    142         UNBLOCK_INPUT;                          \ 
    143       pthread_mutex_unlock (&alloc_mutex);      \ 
     146      if (!in_sighandler)                       \ 
     147        {                                       \ 
     148           pthread_mutex_unlock (&alloc_mutex); \ 
     149           if (pthread_self () == main_thread)  \ 
     150             UNBLOCK_INPUT;                     \ 
     151           else                                 \ 
     152             sigunblock (sigmask (SIGIO));      \ 
     153        }                                       \ 
    144154    }                                           \ 
    145155  while (0)