fix the signal handler problem and format code
solve the signal handler
solve the signal handler
Merge branch 'master' into private