Change type of received_sigterm variable from sig_atomic_t to int,