it exists to determin how many signals there exists, also, only
restore those signalhandlers that we got out.
Bug reported by and patch tested by Harald Barth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18158 ec53bebd-3082-4978-b11e-865c3cabbd6b