aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-11-11 21:12:47 +0100
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-11-11 21:12:47 +0100
commit69f85b8f3943f0e8ed87dc7afd8e87868f516966 (patch)
tree27779b2f2cf367c4402f7d7ffa32eeec3290fd6f
parent96fd02663c3175209382ab27fdaa7d157880798d (diff)
error messages made consistent
-rw-r--r--rpt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/rpt.c b/rpt.c
index ce3260c..2abdaf0 100644
--- a/rpt.c
+++ b/rpt.c
@@ -52,7 +52,7 @@ exit_on_error(int status)
if (!status)
return;
- fprintf(stderr, "Child process exited with status %d, aborting.\n",
+ fprintf(stderr, "rpt: child process exited with status %d, aborting\n",
status);
exit(status);
}
@@ -75,7 +75,7 @@ exec_child(char **argv)
if (status < 0)
{
- perror("rpt[child process]");
+ perror("lseek");
exit(4);
}
}
@@ -84,7 +84,7 @@ exec_child(char **argv)
if (status < 0)
{
- perror("rpt[child process]");
+ perror("dup2");
exit(4);
}
@@ -92,7 +92,7 @@ exec_child(char **argv)
if (status < 0)
{
- perror("rpt[child process]");
+ perror("execvp");
exit(4);
}
@@ -116,7 +116,7 @@ invoke_cmd(char **argv, void (*handle_error_f)(int status))
if (pid < 0)
{
- perror("rpt");
+ perror("fork");
exit(4);
}
@@ -145,7 +145,7 @@ copy_stdin()
if (!stdin_clone)
{
- perror("rpt");
+ perror("tmpfile");
exit(1);
}
@@ -160,7 +160,7 @@ copy_stdin()
if (errno)
{
fclose(stdin_clone);
- perror("rpt");
+ perror("read/write");
exit(1);
}
}