diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-03-14 07:13:35 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-03-14 07:13:35 -0400 |
| commit | eecd1fabce5ba4a9dbab2b73c8f5d0fdf5cdc768 (patch) | |
| tree | 78aee9e0b848cc7fe99091a03ec529358c58e0ef | |
| parent | 5bb284cee573b8a75ab28b24f3c010c05f25fe7f (diff) | |
rt_launch: improve error reporting on execv failure
| -rw-r--r-- | bin/rt_launch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rt_launch.c b/bin/rt_launch.c index 323d5af..2b8dbea 100644 --- a/bin/rt_launch.c +++ b/bin/rt_launch.c | |||
| @@ -208,6 +208,6 @@ int main(int argc, char** argv) | |||
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | execvp(argv[optind], argv + optind); | 210 | execvp(argv[optind], argv + optind); |
| 211 | perror("execv failed"); | 211 | fprintf(stderr, "rt_launch: cannot execute '%s' (%m)\n", argv[optind]); |
| 212 | return 1; | 212 | return 1; |
| 213 | } | 213 | } |
