diff --git a/ndhc/ifchd.c b/ndhc/ifchd.c index 6fed508..01139dd 100644 --- a/ndhc/ifchd.c +++ b/ndhc/ifchd.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -374,6 +375,7 @@ void do_ifch_work(void) } void ifch_main() { + prctl(PR_SET_NAME, "ndhc: ifch"); if (file_exists(pidfile_ifch, "w") == -1) { log_line("FATAL - can't open ifch-pidfile '%s' for write!", pidfile_ifch); diff --git a/ndhc/ndhc.c b/ndhc/ndhc.c index 219f9f0..2494b5e 100644 --- a/ndhc/ndhc.c +++ b/ndhc/ndhc.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -279,6 +280,7 @@ static void create_ipc_pipes() { } void ndhc_main() { + prctl(PR_SET_NAME, "ndhc: master"); log_line("ndhc client " NDHC_VERSION " started on interface [%s].", client_config.interface);