add demo test save globle variable errno in signal funcition