diff options
Diffstat (limited to 'media-sound/xmms/files/xmms-sigterm.patch')
-rw-r--r-- | media-sound/xmms/files/xmms-sigterm.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/media-sound/xmms/files/xmms-sigterm.patch b/media-sound/xmms/files/xmms-sigterm.patch deleted file mode 100644 index af04b04bfb12..000000000000 --- a/media-sound/xmms/files/xmms-sigterm.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- xmms-1.2.7/xmms/main.c 2003-01-09 23:14:04.000000000 +0100 -+++ xmms-1.2.7/xmms/main-exit.c 2003-01-09 23:13:53.000000000 +0100 -@@ -3257,6 +3257,18 @@ - exit(1); - } - -+/* Try to exit nicely when receiving a nice exit signal */ -+void sigterm_handler(int sig) -+{ -+ /* Original author of patch said that you should not use mainwin_quit_cb(), -+ * but his way deadlock xmms, and it anyhow just calls ctrlsocket stuff with -+ * with CMD_QUIT, which anyhow calls mainwin_quit_cb() in turn. This is not -+ * entirely clean, but works. -+ * <azarah@gentoo.org> (19 Jan 2003) -+ xmms_remote_quit(ctrlsocket_get_session_id()); */ -+ mainwin_quit_cb(); -+} -+ - static gboolean pposition_configure(GtkWidget *w, GdkEventConfigure *event, gpointer data) - { - gint x,y; -@@ -3387,6 +3393,8 @@ - #endif - - signal(SIGPIPE, SIG_IGN); /* for controlsocket.c */ -+ signal(SIGTERM, sigterm_handler); -+ signal(SIGINT, sigterm_handler); - signal(SIGSEGV, segfault_handler); - g_thread_init(NULL); - if (!g_thread_supported()) |