Skip to content

Commit

Permalink
renderer/gtk(ffi-initialize): Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Sep 10, 2024
1 parent 5423443 commit 0969892
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions source/renderer/gtk.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,7 @@ the renderer thread, use `defmethod' instead."
(call-next-method)))
(unless nyxt::*run-from-repl-p*
(gtk:join-gtk-main)
;; KLUDGE: On FreeBSD nyxt is stuck inside some blocking
;; syscall if FINISH-OUTPUT is T. In this case the
;; "force-quitter" thread created by QUIT command will not
;; help and nyxt can only be killed with SIGKILL,
;; e.g. executing "killall -9 nyxt". A workaround is to call
;; UIOP:QUIT with FINISH-OUTPUT = NIL in the first place.
;;
;; FIXME: This also can be true for other BSD systems.
(uiop:quit (slot-value browser 'nyxt::exit-code) #+freebsd nil)))))
(uiop:quit (slot-value browser 'nyxt::exit-code) #+bsd nil)))))

(define-ffi-method ffi-kill-browser ((browser gtk-browser))
;; TODO: Terminating the GTK thread from the REPL seems to prevent Nyxt from
Expand Down

0 comments on commit 0969892

Please sign in to comment.