UNP's signal and Signal function based on sigaction