fixed some unlock bugs and output format
fix ./a.out 3 2 bugs in signal
NOT the bug last time