do signal handling in send()