summaryrefslogtreecommitdiffabout
path: root/src/com_reload.c
Side-by-side diff
Diffstat (limited to 'src/com_reload.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/com_reload.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com_reload.c b/src/com_reload.c
index fd12e7d..7a0f768 100644
--- a/src/com_reload.c
+++ b/src/com_reload.c
@@ -16,6 +16,18 @@ com_reload(void)
pidlist_init(&pids);
if (get_pid_list(genrc_pid_closure, &pids))
return 1;
+ if (genrc_verbose) {
+ printf("Reloading %s: sending %s to %s ",
+ genrc_program, strsignal(genrc_signal_reload),
+ pids.pidc > 1 ? "PIDs" : "PID");
+ printf("%lu", (unsigned long)pids.pidv[0]);
+ if (pids.pidc > 1) {
+ int i;
+ for (i = 0; i < pids.pidc; i++ )
+ printf(",%lu", (unsigned long)pids.pidv[i]);
+ }
+ putchar('\n');
+ }
pidlist_kill(&pids, genrc_signal_reload);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.