fix put-preferences
This commit is contained in:
parent
b25c9591f6
commit
caa0026bc2
|
@ -205,17 +205,18 @@
|
|||
(define failure-thunk
|
||||
(if lock-there
|
||||
(lambda () (lock-there lock-file))
|
||||
(case lock-style
|
||||
[(file-lock) (error who
|
||||
"~a ~a: ~e"
|
||||
"some other process has a lock"
|
||||
"on the preferences lock file"
|
||||
lock-file)]
|
||||
[else (error who
|
||||
"~a, ~a: ~e"
|
||||
"some other process has the preference-file lock"
|
||||
"as indicated by the existence of the lock file"
|
||||
lock-file)])))
|
||||
(lambda ()
|
||||
(case lock-style
|
||||
[(file-lock) (error who
|
||||
"~a ~a: ~e"
|
||||
"some other process has a lock"
|
||||
"on the preferences lock file"
|
||||
lock-file)]
|
||||
[else (error who
|
||||
"~a, ~a: ~e"
|
||||
"some other process has the preference-file lock"
|
||||
"as indicated by the existence of the lock file"
|
||||
lock-file)]))))
|
||||
|
||||
(call-with-file-lock kind lock-file thunk failure-thunk #:lock-style lock-style))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user