aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-16 03:58:49 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-16 03:58:49 +0000
commit6da73298fc1d2e2584c1c1adaf75bf640064eb38 (patch)
tree035c474a4c86579da037c1b467160abce1ca56d7 /main.c
parentadd ChangeLog (diff)
downloadw3m-6da73298fc1d2e2584c1c1adaf75bf640064eb38.tar.gz
w3m-6da73298fc1d2e2584c1c1adaf75bf640064eb38.zip
[w3m-dev 02408] meta refresh
From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/main.c b/main.c
index be8b81f..8791dc3 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.4 2001/11/16 03:30:15 ukai Exp $ */
+/* $Id: main.c,v 1.5 2001/11/16 03:58:49 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -32,16 +32,10 @@ Hist *ShellHist;
Hist *TextHist;
#define N_EVENT_QUEUE 10
-typedef struct {
- int cmd;
- void *user_data;
-} Event;
static Event eventQueue[N_EVENT_QUEUE];
static int n_event_queue;
#ifdef USE_ALARM
-static int alarm_sec = 0;
-static Event alarm_event;
static MySignalHandler SigAlarm(SIGNAL_ARG);
#endif
@@ -4618,6 +4612,9 @@ SigAlarm(SIGNAL_ARG)
CurrentMenuData = NULL;
#endif
w3mFuncList[alarm_event.cmd].func();
+ onA();
+ if (alarm_once)
+ alarm_sec = 0;
signal(SIGALRM, SigAlarm);
alarm(alarm_sec);
}
@@ -4647,6 +4644,7 @@ setAlarm(void)
}
if (cmd >= 0) {
alarm_sec = sec;
+ alarm_once = FALSE;
alarm_event.cmd = cmd;
alarm_event.user_data = getQWord(&data);
signal(SIGALRM, SigAlarm);