Print out *which* program is causing the delay
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2011 09:22:36 +0000 (11:22 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2011 09:22:36 +0000 (11:22 +0200)
src/main/exec.c

index 44dd9ae..db90641 100644 (file)
@@ -465,7 +465,7 @@ int radius_exec_program(const char *cmd, REQUEST *request,
                rcode = select(pd[0] + 1, &fds, NULL, NULL, &wake);
                if (rcode == 0) {
                too_long:
-                       radlog(L_ERR, "Child PID %u is taking too much time: forcing failure and killing child.", pid);
+                       radlog(L_ERR, "Child PID %u (%s) is taking too much time: forcing failure and killing child.", pid, argv[0]);
                        kill(pid, SIGTERM);
                        close(pd[0]); /* should give SIGPIPE to child, too */