Changeset 8645a578630798b9859f7cdccef6c78300efae11

Show
Ignore:
Timestamp:
02/28/12 21:44:34 (2 years ago)
Author:
Philip Maddox <pmaddox@circonus.com>
git-committer:
Philip Maddox <pmaddox@circonus.com> 1330465474 -0500
git-parent:

[c4bfda41ac34a173e53c73725b8ccc799eb29bba]

git-author:
Philip Maddox <pmaddox@circonus.com> 1330465474 -0500
Message:

Fixed a bug in the external module where the main handling thread would only allow one interruption by moving the signal handling setup into the loop.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/external_proc.c

    rec0f79b r8645a57  
    249249  } 
    250250 
    251   signal(SIGCHLD, external_sigchld); 
    252251  noit_skiplist_init(&active_procs); 
    253252  noit_skiplist_set_compare(&active_procs, __proc_state_check_no, 
     
    265264    int16_t argcnt, *arglens, envcnt, *envlens; 
    266265    int i; 
     266 
     267    signal(SIGCHLD, external_sigchld); 
    267268 
    268269    /* We poll here so that we can be interrupted by the SIGCHLD */