Initialize sigactions in signal handlers

I know the previous code was taken from the Qt tutorial but it seems wrong.
Time to time, X kills sddm on my machine (and according to other users, it's not happening just to me) with SIGUSR1. That leads me to believe SA_RESETHAND or some other nasty flag is occasionally set by an uninitialized value.