gui: Remove --timeout.
authorAndre Noll <maan@systemlinux.org>
Sun, 25 May 2014 22:02:40 +0000 (00:02 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
para_gui should work well regardless of the scheduler timeout setting.
This commit removes the timeout options and changes gui.c to use a
fixed timeout of one second.

gui.c
m4/gengetopt/gui.m4

diff --git a/gui.c b/gui.c
index 8e83cc5..6a601f8 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1431,12 +1431,7 @@ static int setup_tasks_and_schedule(void)
        struct status_task status_task = {.fd = -1};
        struct input_task input_task = {.task = NULL};
        struct signal_task *signal_task;
-       struct sched sched = {
-               .default_timeout = {
-                       .tv_sec = conf.timeout_arg  / 1000,
-                       .tv_usec = (conf.timeout_arg % 1000) * 1000,
-               },
-       };
+       struct sched sched = {.default_timeout = {.tv_sec = 1}};
 
        exec_task.task = task_register(&(struct task_info) {
                .name = "exec",
index a6b718e..373416c 100644 (file)
@@ -16,12 +16,6 @@ include(config_file.m4)
 include(loglevel.m4)
 
 <qu>
-option "timeout" t
-#~~~~~~~~~~~~~~~~~
-"set timeout"
-int typestr = "milliseconds"
-default = "30"
-optional
 
 option "theme" T
 #~~~~~~~~~~~~~~~