Restart failed modules with exit codes other than 0 (#406)
Restart failed modules with exit codes other than 0 (#406)

* Restart failed modules with exit codes other than 0

Previously, the exit code was ignored when restarting modules.

Recently, after a suspicious libx11 commit, `lxqt-globalkeysd` may randomly fail at login without crash (see https://github.com/lxqt/lxqt-globalkeys/issues/247). This patch works around the problem but, in general, I found no reason to ignore the exit code — unless I'm missing something…

NOTE: I didn't add a new text for the warning message because, as far as the user is concerned, a sudden exit isn't different from a crash. Also, allowing for 5 extra restarts for the exit code 1 *independently of probable crashes* seemed too much.

* Added exitCode to qCDebug()
lxde/lxqt-session,lxde/lxqt-session,lxde/lxqt-session