Replaced select() calls with waitpid() in slave.c when waiting for the greeter to die (fixes zombie greeter process hanging MDM slave)