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

new use case: process.on #2

Open
vvo opened this issue Jan 30, 2014 · 2 comments
Open

new use case: process.on #2

vvo opened this issue Jan 30, 2014 · 2 comments

Comments

@vvo
Copy link

vvo commented Jan 30, 2014

Hello,

I have a usecase which is not covered:

require('superstack');
var listener = function() {};
process.on('SIGTERM', listener);

process.removeListener('SIGTERM', listener);
// listener not removed

Maybe because:

> node
> process.on === require('events').EventEmitter.prototype.on
false
> 

?

@defunctzombie
Copy link
Owner

Oh interesting, I was under impression process object was an event emitter proper. Yes, these will need to be added and tests added.

@vvo
Copy link
Author

vvo commented Jan 30, 2014

I will have a try at fixing it, just wanted to be sure it would fit in the lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants