diff --git a/NEWS b/NEWS index 0d4ad7ad..b119eb75 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ its purpose (#676). This option defines the duration (in seconds) for which an IP address is banned after exceeding the maximum allowed `max-ban-score`. Default is 300 seconds (5 minutes). +- Fixed ocserv-worker process title * Version 1.4.0 (released 2026-01-04) diff --git a/src/main.c b/src/main.c index 1f391589..adbede56 100644 --- a/src/main.c +++ b/src/main.c @@ -1194,7 +1194,6 @@ static void listen_watcher_cb(EV_P_ ev_io *w, int revents) close(s->sec_mod_instances[i].sec_mod_fd_sync); } - setproctitle(PACKAGE "-worker"); kill_on_parent_kill(SIGTERM); set_self_oom_score_adj(s); diff --git a/src/worker.c b/src/worker.c index b5ec91e2..fb74c5cb 100644 --- a/src/worker.c +++ b/src/worker.c @@ -65,6 +65,9 @@ int main(int argc, char *argv[]) talloc_enable_leak_report_full(); #endif + saved_argc = argc; + saved_argv = argv; + if (!getenv(OCSERV_ENV_WORKER_STARTUP_MSG)) { fprintf(stderr, "This application is part of ocserv and should not be run in isolation\n");