Specify which watched PID had the problem.

This commit is contained in:
Andrew Wood
2026-04-25 21:04:41 +01:00
parent 2b1d359281
commit ee96f3f43b
+2 -2
View File
@@ -467,7 +467,7 @@ int pv_watchpid_scanfds(pvstate_t state, pid_t watch_pid, int watch_fd, int *arr
int fd_infos_count = 0;
if (pidfds(state, watch_pid, &fd_infos, &fd_infos_count) != 0) {
pv_error("%s: pidfds failed", _("pid"));
pv_error("%s %u: pidfds failed", _("pid"), watch_pid);
return -1;
}
#else
@@ -497,7 +497,7 @@ int pv_watchpid_scanfds(pvstate_t state, pid_t watch_pid, int watch_fd, int *arr
#ifdef __APPLE__
if (fd_infos_count < 1) {
pv_error("%s: no fds found", _("pid"));
pv_error("%s %u: no fds found", _("pid"), watch_pid);
return -1;
}
for (int i = 0; i < fd_infos_count; i++) {