From 1190e700852a01b33c401cd51a4a7168d293e3a7 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 8 Jun 2026 21:50:32 +0100 Subject: [PATCH] Report the system error message along with the syscall. --- src/main/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/options.c b/src/main/options.c index 68544d1..16a2aad 100644 --- a/src/main/options.c +++ b/src/main/options.c @@ -223,7 +223,7 @@ static bool opts_watchfd_processname(opts_t opts, const char *process_name) exit(EXIT_FAILURE); } if (dup2(nullfd, STDIN_FILENO) < 0) { - pv_error("%s", "dup2"); + pv_perror("%s", "dup2"); exit(EXIT_FAILURE); } (void) close(nullfd);