Trivial fixes on error paths
* strace.c (startup_attach): Emit message on fork() failure.
(startup_child): Remove non-informative comment.
* util.c (ptrace_restart): use perror_msg() on error instead of fprintf().
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
diff --git a/util.c b/util.c
index 20311fc..0658bc0 100644
--- a/util.c
+++ b/util.c
@@ -224,8 +224,7 @@
msg = "CONT";
if (op == PTRACE_DETACH)
msg = "DETACH";
- fprintf(stderr, "strace: ptrace(PTRACE_%s,1,%d): %s\n",
- msg, sig, strerror(err));
+ perror_msg("ptrace(PTRACE_%s,1,%d)", msg, sig);
return -1;
}