Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 085dd30e93da
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 4234bcce486f
Choose a head ref
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Oct 16, 2013

  1. debugger: make busy loops SIGUSR1-interruptible

    Commit 30e5366 ("core: Use a uv_signal for debug listener") changed
    SIGUSR1 handling from a signal handler to libuv's uv_signal_*()
    functionality to fix a race condition (and possible hang) in the
    signal handler.
    
    While a good change in itself, it made it impossible to interrupt
    long running scripts.  When a script is stuck in a busy loop, control
    never returns to the event loop, which in turn means the signal
    callback - and therefore the debugger - is never invoked.
    
    This commit changes SIGUSR1 handling back to a normal signal handler
    but one that treads _very_ carefully.
    bnoordhuis committed Oct 16, 2013
    Copy the full SHA
    ca363cf View commit details
    Browse the repository at this point in the history
  2. debugger: fix SIGUSR1 bootstrap race condition

    Before this commit, the SIGUSR1 signal handler wasn't installed until
    late in the bootstrapping process and we were prone to miss signals
    sent by other processes.
    
    This commit installs an early-boot signal handler that merely records
    the fact that we received a signal.  Once the debugger infrastructure
    is in place, the signal is re-raised, kickstarting the debugger.
    
    Among other things, this means that simple/test-debugger-client is
    now _much_ less likely to fail.
    bnoordhuis committed Oct 16, 2013
    Copy the full SHA
    4234bcc View commit details
    Browse the repository at this point in the history