Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leak of listeners for process #432

Closed

Commits on May 23, 2012

  1. Fix leak of listeners for process

    When I run `mocha --watch` and after 11th running, the following message was
    shown:
    
    ```
    (node) warning: possible EventEmitter memory leak detected. 11 listeners
    added. Use emitter.setMaxListeners() to increase limit.
    ```
    
    It seems that 'uncaughtException' listener is not released.
    Because, the listener to be released is different from listened one.
    
    To fix this issue, I gave the same listener to `process.on` and
    `process.removeListener`.
    tricknotes committed May 23, 2012
    Configuration menu
    Copy the full SHA
    b603d35 View commit details
    Browse the repository at this point in the history