Fix a bug that SIGSTOP and SIGCONT stops server