Merge branch 'worker-title' into 'master'

Fix worker process title not being set

See merge request openconnect/ocserv!498
This commit is contained in:
Nikos Mavrogiannopoulos
2026-01-25 16:58:18 +00:00
3 changed files with 4 additions and 1 deletions

1
NEWS
View File

@@ -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)

View File

@@ -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);

View File

@@ -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");