freebsd-ports/sysutils/roottail/files/patch-aa
Edwin Groothuis 54c7bd1398 update sysutils/roottail to 0.2
Update root-tail, utility to tail multiple log files on
	root window of X, to last version 0.2, which fixes broken
	-noinitial switch.

PR:		ports/50708
Submitted by:	Pav Lucistnik <pav@oook.cz>
2003-09-29 14:12:06 +00:00

31 lines
707 B
Text

--- root-tail.c.orig Wed May 8 22:54:47 2002
+++ root-tail.c Sun Mar 16 10:41:37 2003
@@ -86,6 +86,7 @@
void list_files(int);
void force_reopen(int);
void force_refresh(int);
+void exit_now(int);
void blank_window(int);
void InitWindow(void);
@@ -128,6 +129,12 @@
redraw();
}
+void exit_now(int signal)
+{
+ fprintf (stderr, "Program exiting due to signal: %d\n", signal);
+ exit(-1);
+}
+
void blank_window(int dummy)
{
XClearWindow(disp, root);
@@ -685,6 +692,7 @@
install_signal(SIGHUP, force_reopen);
install_signal(SIGUSR1, list_files);
install_signal(SIGUSR2, force_refresh);
+ install_signal(SIGSEGV, exit_now);
if (opt_daemonize)
daemonize();