From 9471a69431549ccf167ab3d1813c30103e8e32a7 Mon Sep 17 00:00:00 2001 From: John Brooks Date: Wed, 23 Oct 2013 18:18:35 -0600 Subject: [PATCH] [mapplauncherd] Rename invoker --daemon-mode to --keep-oom-score The old name was vague and didn't indicate the change in behavior at all. Its documentation also described the behavior incorrectly. If the -o or --keep-oom-score parameter is passed, the OOM score of the boosted process will be unchanged. Normally, it will be reset to 0 on launch. The --daemon-mode parameter is kept as an alias for compatibility. --- src/invoker/invoker.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/invoker/invoker.c b/src/invoker/invoker.c index f4b9832..3cc3eab 100644 --- a/src/invoker/invoker.c +++ b/src/invoker/invoker.c @@ -408,8 +408,8 @@ static void usage(int status) " -s, --single-instance Launch the application as a single instance.\n" " The existing application window will be activated\n" " if already launched.\n" - " -o, --daemon-mode Notify invoker that the launched process is a daemon.\n" - " This resets the oom_adj of the process.\n" + " -o, --keep-oom-score Notify invoker that the launched process should inherit oom_score_adj\n" + " from the booster. The score is reset to 0 normally.\n" " -T, --test-mode Invoker test mode. Also control file in root home should be in place.\n" " -h, --help Print this help.\n\n" "Example: %s --type=qt5 /usr/bin/helloworld\n\n", @@ -666,7 +666,8 @@ int main(int argc, char *argv[]) {"global-syms", no_argument, NULL, 'G'}, {"deep-syms", no_argument, NULL, 'D'}, {"single-instance", no_argument, NULL, 's'}, - {"daemon-mode", no_argument, NULL, 'o'}, + {"keep-oom-score", no_argument, NULL, 'o'}, + {"daemon-mode", no_argument, NULL, 'o'}, // Legacy alias {"test-mode", no_argument, NULL, 'T'}, {"type", required_argument, NULL, 't'}, {"delay", required_argument, NULL, 'd'},