Remove call-with-sigint
This comes from guile-knots now.
This commit is contained in:
parent
9fa059af61
commit
c602c6b533
1 changed files with 0 additions and 17 deletions
|
|
@ -52,8 +52,6 @@
|
||||||
|
|
||||||
get-guix-metrics-updater
|
get-guix-metrics-updater
|
||||||
|
|
||||||
call-with-sigint
|
|
||||||
|
|
||||||
spawn-port-monitoring-fiber
|
spawn-port-monitoring-fiber
|
||||||
|
|
||||||
make-queueing-channel))
|
make-queueing-channel))
|
||||||
|
|
@ -187,18 +185,3 @@
|
||||||
(close-port sock)))
|
(close-port sock)))
|
||||||
#:timeout 20))
|
#:timeout 20))
|
||||||
#:unwind? #t)))))
|
#:unwind? #t)))))
|
||||||
|
|
||||||
;; Copied from (fibers web server)
|
|
||||||
(define (call-with-sigint thunk cvar)
|
|
||||||
(let ((handler #f))
|
|
||||||
(dynamic-wind
|
|
||||||
(lambda ()
|
|
||||||
(set! handler
|
|
||||||
(sigaction SIGINT (lambda (sig) (signal-condition! cvar)))))
|
|
||||||
thunk
|
|
||||||
(lambda ()
|
|
||||||
(if handler
|
|
||||||
;; restore Scheme handler, SIG_IGN or SIG_DFL.
|
|
||||||
(sigaction SIGINT (car handler) (cdr handler))
|
|
||||||
;; restore original C handler.
|
|
||||||
(sigaction SIGINT #f))))))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue