syscalls: Pass the right 'throw' arguments in 'call-with-file-lock/no-wait'.

Reported by Matt Wette <matt.wette@gmail.com>
in <https://bugs.gnu.org/39194>.

* guix/build/syscalls.scm (call-with-file-lock/no-wait): When
re-throwing, pass KEY in addition to ARGS.
This commit is contained in:
Ludovic Courtès 2020-01-19 22:42:27 +01:00
parent 358f66a004
commit b782688d71
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
@ -1140,7 +1140,7 @@ (define (call-with-file-lock/no-wait file thunk handler)
;; at this point.
(if (= ENOSYS (system-error-errno (cons key args)))
#f
(apply throw args)))
(apply throw key args)))
(_ (apply throw key args)))))))
(dynamic-wind
(lambda ()