]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 8e83cc53c6d55f53ccdb0a9dfbb4c89f0bb7525a..6a601f81124a2a4adef0680ec8bcaff22a7de0b7 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 a6b718ee958815fdadff3ff4cb7206626f46540b..373416ce05b664f50fb7e28182ec539c1e7109bc 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
 #~~~~~~~~~~~~~~~