mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Fix v3.1 regression in start of inetd services, missing rlimit
Per service rlimit is new in v3.1. When an inetd service connection is created we do a selective copy from the parent inetd. We also need to copy the parent's rlimits, otherwise the child will be killed as soon as the kernel starts it. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -208,6 +208,7 @@ static void socket_cb(uev_t *w, void *arg, int events)
|
||||
task->inetd.cmd = svc->inetd.cmd;
|
||||
task->inetd.type = svc->inetd.type;
|
||||
|
||||
memcpy(task->rlimit, svc->rlimit, sizeof(task->rlimit));
|
||||
memcpy(task->cond, svc->cond, sizeof(task->cond));
|
||||
memcpy(task->username, svc->username, sizeof(task->username));
|
||||
memcpy(task->group, svc->group, sizeof(task->group));
|
||||
|
||||
Reference in New Issue
Block a user