Since Gtk+-2.18 "helpfully" ignores SIGPIPE in gtk_init, reinstall handler
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Tue, 14 Sep 2010 18:29:20 +0000 (22:29 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Tue, 14 Sep 2010 18:29:20 +0000 (22:29 +0400)
gtk/gtk.main_loop_events.lisp

index 244a7d7..909967c 100644 (file)
@@ -7,6 +7,8 @@
 (defun gtk-init ()
   (gtk-init-check (foreign-alloc :int :initial-element 0)
                   (foreign-alloc :string :initial-contents '("/usr/bin/sbcl")))
+  #+sbcl
+  (sb-unix::enable-interrupt sb-unix:sigpipe #'sb-unix::sigpipe-handler)
   #+nil(with-foreign-objects ((argc :int)
                          (argv '(:pointer :string) 1))
     (setf (mem-ref argc :int) 0