summaryrefslogtreecommitdiff
path: root/src/core/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-08-25 11:39:42 +0200
committerGitHub <noreply@github.com>2022-08-25 11:39:42 +0200
commit5b9ae04c6578f559186d981f0cf88cf36fa652ea (patch)
treecebab06dc4877573907b60c13d5e11468286b9e4 /src/core/load-fragment.c
parent13d9616c567ea3155716a49d5035169279a40de4 (diff)
parent5aa633db228ed3de263500d99d40b5d5e2c9695a (diff)
downloadsystemd-5b9ae04c6578f559186d981f0cf88cf36fa652ea.tar.gz
Merge pull request #24242 from msekletar/terminate-idle-sessions
Add option to stop idle sessions after specified timeout
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 6a7390a6f0..30d885e7a1 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -2544,37 +2544,6 @@ int config_parse_service_timeout_abort(
return 0;
}
-int config_parse_sec_fix_0(
- const char *unit,
- const char *filename,
- unsigned line,
- const char *section,
- unsigned section_line,
- const char *lvalue,
- int ltype,
- const char *rvalue,
- void *data,
- void *userdata) {
-
- usec_t *usec = data;
- int r;
-
- assert(filename);
- assert(lvalue);
- assert(rvalue);
- assert(usec);
-
- /* This is pretty much like config_parse_sec(), except that this treats a time of 0 as infinity, for
- * compatibility with older versions of systemd where 0 instead of infinity was used as indicator to turn off a
- * timeout. */
-
- r = parse_sec_fix_0(rvalue, usec);
- if (r < 0)
- log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse %s= parameter, ignoring: %s", lvalue, rvalue);
-
- return 0;
-}
-
int config_parse_user_group_compat(
const char *unit,
const char *filename,