Permalink
Browse files

exit from the subshell with error when suspend fails

derp.
  • Loading branch information...
1 parent d10b175 commit 9532aaae3d829e9148a6cf81a7f8471fcc3b8aef @falconindy falconindy committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wakeup.c
View
@@ -70,7 +70,7 @@ do_suspend(const char *command)
execlp(command, command, NULL);
fprintf(stderr, "error: failed to execute %s: %s\n", command,
strerror(errno));
- _exit(0);
+ _exit(127);
}
while(wait(&status) != pid);

0 comments on commit 9532aaa

Please sign in to comment.