Permalink
Browse files

execute suspend command via shell

  • Loading branch information...
1 parent de8804c commit 37be2de262d14554ecd7362fda145087e22d4660 @falconindy falconindy committed Dec 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wakeup.c
View
@@ -88,7 +88,7 @@ do_suspend(const char *command)
}
if(pid == 0) {
- execlp(command, command, NULL);
+ execlp("/bin/sh", command, "-c", command, NULL);
fprintf(stderr, "error: failed to execute %s: %s\n", command,
strerror(errno));
_exit(127);

0 comments on commit 37be2de

Please sign in to comment.