commit | 021cdbe1c0111951a1f63b09b41c9e3db3793db5 | [log] [download] |
---|---|---|
author | nicm <nicm> | Wed Jun 17 16:44:49 2015 +0000 |
committer | nicm <nicm> | Wed Jun 17 16:44:49 2015 +0000 |
tree | 2716f2d6a0a572603511d239420a34919904b54f | |
parent | d96ab3401960ab4a7c9434dfda1ebdc5204873e0 [diff] |
Use an explicit job state instead of avoid closing our side of the socketpair and setting it to -1 to mark when the other side is closed. This avoids closing it while the libevent bufferevent still has it (it could try to add it to the polled set which some mechanisms don't like). Fixes part a problem reported by Bruno Sutic.