]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add MemoryKSM and SetLoginEnvironment to exec_context_dump 29569/head
authorMike Yuan <me@yhndnzj.com>
Fri, 13 Oct 2023 22:21:35 +0000 (06:21 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 13 Oct 2023 22:41:02 +0000 (06:41 +0800)
src/core/execute.c

index d63922398745da926c1bfc1342d68b8d97e4b2fd..06fcc741f87bbb070b71f597cac1746592c5c226 100644 (file)
@@ -944,6 +944,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
                 prefix, protect_proc_to_string(c->protect_proc),
                 prefix, proc_subset_to_string(c->proc_subset));
 
+        if (c->set_login_environment >= 0)
+                fprintf(f, "%sSetLoginEnvironment: %s\n", prefix, yes_no(c->set_login_environment > 0));
+
         if (c->root_image)
                 fprintf(f, "%sRootImage: %s\n", prefix, c->root_image);
 
@@ -1008,6 +1011,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
 
         fprintf(f, "%sTimeoutCleanSec: %s\n", prefix, FORMAT_TIMESPAN(c->timeout_clean_usec, USEC_PER_SEC));
 
+        if (c->memory_ksm >= 0)
+                fprintf(f, "%sMemoryKSM: %s\n", prefix, yes_no(c->memory_ksm > 0));
+
         if (c->nice_set)
                 fprintf(f, "%sNice: %i\n", prefix, c->nice);