undo Java change by making waitStatus work like reference impl