mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
Merge branch 'worker-title' into 'master'
Fix worker process title not being set See merge request openconnect/ocserv!498
This commit is contained in:
1
NEWS
1
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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user