src: refactor OS debug signal