fix return value typo in do_restart()