fixed warning, added SA-RESTART flag to sigAction, added error checking for bg & fg