Processmanager: read_wait() always returns result

read_wait() should return result when process is inactive.