phusion/baseimage-docker — pull request #83 by andre-luiz-dos-santos (2014-05-26 18:01:07+00:00)
Title: Avoid waiting forever

If the process "pid" is already terminated by the time "waitpid" is called for the first time, then "done" is never going to be true.