The reason could be die raises a signal. so Inside a signal handler, If a signal getting raised it will lead to misleading result. that is what happened in your code.
Remove the die and use exit there. I have updated my node accordingly. use the same code and try in your important.
That will work.
In reply to Re^3: win32, ctrl-c, sleep, and signals
by jesuashok
in thread win32, ctrl-c, sleep, and signals
by SirBones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |