diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2017-01-30 21:35:37 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-31 11:22:56 +1000 |
commit | 2effad417dabccd0b41ac32dc8108c99c73801d2 (patch) | |
tree | 39d459002efcf82605c0d70b524cbb322af58acb /xinit.c | |
parent | 710ea2cec2b36831a3b6b5bdae223d18edbea933 (diff) |
xinit: check for correct fork error code
Even though this code is only active on __sun machines, the fork return
value should be checked for -1, not 1, to detect an error situation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xinit.c')
-rw-r--r-- | xinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -638,7 +638,7 @@ shutdown(void) Fatal("Unable to run program \"%s\"", "kbd_mode"); break; - case 1: + case -1: Error("fork failed"); break; |