Lines 1-31
Link Here
|
1 |
--- root-tail.c.orig Wed May 8 22:54:47 2002 |
1 |
--- root-tail.c.orig Thu Apr 8 22:58:28 2004 |
2 |
+++ root-tail.c Sun Mar 16 10:41:37 2003 |
2 |
+++ root-tail.c Fri May 14 23:48:58 2004 |
3 |
@@ -86,6 +86,7 @@ |
3 |
@@ -152,6 +152,7 @@ |
4 |
void list_files(int); |
4 |
void list_files (int); |
5 |
void force_reopen(int); |
5 |
void force_reopen (int); |
6 |
void force_refresh(int); |
6 |
void force_refresh (int); |
7 |
+void exit_now(int); |
7 |
+void exit_now (int); |
8 |
void blank_window(int); |
8 |
void blank_window (int); |
9 |
|
9 |
|
10 |
void InitWindow(void); |
10 |
void InitWindow (void); |
11 |
@@ -128,6 +129,12 @@ |
11 |
@@ -198,6 +199,13 @@ |
12 |
redraw(); |
|
|
13 |
} |
12 |
} |
14 |
|
13 |
|
15 |
+void exit_now(int signal) |
14 |
void |
|
|
15 |
+exit_now (int signal) |
16 |
+{ |
16 |
+{ |
17 |
+ fprintf (stderr, "Program exiting due to signal: %d\n", signal); |
17 |
+ fprintf (stderr, "Program exiting due to signal: %d\n", signal); |
18 |
+ exit(-1); |
18 |
+ exit(-1); |
19 |
+} |
19 |
+} |
20 |
+ |
20 |
+ |
21 |
void blank_window(int dummy) |
21 |
+void |
|
|
22 |
blank_window (int dummy) |
22 |
{ |
23 |
{ |
23 |
XClearWindow(disp, root); |
24 |
XClearArea (disp, root, win_x, win_y, width + MARGIN_OF_ERROR, height, False); |
24 |
@@ -685,6 +692,7 @@ |
25 |
@@ -1501,6 +1509,7 @@ |
25 |
install_signal(SIGHUP, force_reopen); |
26 |
install_signal (SIGHUP, force_reopen); |
26 |
install_signal(SIGUSR1, list_files); |
27 |
install_signal (SIGUSR1, list_files); |
27 |
install_signal(SIGUSR2, force_refresh); |
28 |
install_signal (SIGUSR2, force_refresh); |
28 |
+ install_signal(SIGSEGV, exit_now); |
29 |
+ install_signal (SIGSEGV, exit_now); |
29 |
|
30 |
|
30 |
if (opt_daemonize) |
31 |
if (opt_daemonize) |
31 |
daemonize(); |
32 |
daemonize (); |