aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--composer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/composer.c b/composer.c
index 5ad0273..0e68400 100644
--- a/composer.c
+++ b/composer.c
@@ -1,6 +1,10 @@
+#include <stdio.h>
#include <unistd.h>
#define COMMAND "echo"
int main(int argc, char** argv) {
- execvp(COMMAND, argv);
+ int result = execvp(COMMAND, argv);
+ if (result < 0) {
+ perror(COMMAND);
+ }
} \ No newline at end of file