modify thin restart method,change for signal,no dead restart.