reset sigprocmask in daemon mode