Move redundant code before daemon's self-forking
Move redundant code before daemon's self-forking

Signal handlers don't need to be registered by each
subprocess on its own basis.  Move this procedure before forking so that
the handlers are shared by inheriting.

congma/pysrun