add pause to linux c
add test for pause under linux
moving signal code and tests to common code