Eric Radman added the comment:
Thanks for posting some simple examples.
Here is the commit that I wrote to solve this problem when I encountered it in
the wild:
https://bitbucket.org/tk0miya/testing.postgresql/commits/3f145860cfd91e3f03f24b87c4b3b41c3a974037
Closing since I am also not able
New submission from Eric Radman:
The documentation for the WNOHANG flag
(https://docs.python.org/3.4/library/os.html#os.WNOHANG) suggests that a return
value of (0, 0) indicates success. This is not always true, the second value
may contain a value even on success. On OpenBSD 5.5 this is an