mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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:
parent
358f66a004
commit
b782688d71
1 changed files with 2 additions and 2 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue