chg: restart nanosleep when interrupted by signal