This repository has been archived by the owner on May 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: don't rely on libev to track timer state
An obscure libev bug sometimes makes it miss state changes. Keep track of the state ourselves. Fixes nodejs/node-v0.x-archive#2515.
- Loading branch information
1 parent
ec0eff9
commit 2f886c8
Showing
3 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2554,6 +2554,7 @@ void | |
ev_unref (EV_P) | ||
{ | ||
--activecnt; | ||
if (activecnt < 0) abort(); | ||
} | ||
|
||
void | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2f886c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have hard time finding a reference to said libev bug... Did you take it to tje libev mailing list or somewhere else ?
2f886c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but I noticed that the libev guy committed a fix for this issue a couple of days after the initial version of my patch.
2f886c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it should be included in libev-4.11, if that is the patch you're referring to :
http://cvs.schmorp.de/libev/ev.c?r1=1.405&r2=1.407