niallo/pty.js — pull request #1 by jaredly (2013-08-03 00:41:26+00:00)
Title: fixing interoperability with native child_process. also added tests

calling `waitpid` when it was one of node's processes caused failure. This fixes it.

Should we perhaps use another map? Is there any case where SIGCHLD would be called multiple times for a single process, such that we would set the pidMap entry, and then not pay attention to successive events?