]> gitweb.factorcode.org Git - factor.git/commitdiff
unix.signals: use remove-eq! on signal handlers.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 8 Mar 2021 23:17:37 +0000 (15:17 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 8 Mar 2021 23:18:01 +0000 (15:18 -0800)
basis/unix/signals/signals.factor

index 9f972d0e29dd65d6877ffe6fef72cb1d45bd5095..672fb5cb7753428627918d75b8d9e0714e970fbe 100644 (file)
@@ -44,6 +44,6 @@ PRIVATE>
     signal-handlers get-global push-at ;
 
 : remove-signal-handler ( handler sig -- )
-    signal-handlers get-global at [ remove! drop ] [ drop ] if* ;
+    signal-handlers get-global at [ remove-eq! ] when* drop ;
 
 [ dispatch-signal ] dispatch-signal-hook set-global