resource: restore original signal handler when sub-main returns
resource: restore original signal handler when sub-main returns

taylor001/crown,dbartolini/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,galek/crown,galek/crown,taylor001/crown,mikymod/crown,galek/crown,taylor001/crown,taylor001/crown,dbartolini/crown,mikymod/crown,mikymod/crown,galek/crown