Skip to content

Commit

Permalink
Don't interrupt threads for progress-style none in src/commands/proto…
Browse files Browse the repository at this point in the history
…col.lisp

Saves a little bit of work and may help less robust POSIX
implementations such as WSL.

* src/commands/protocol.lisp (execute-command): do not interrupt the
  main thread to signal the progress condition if `progress-style' is
  `:none'
  • Loading branch information
scymtym committed Jun 25, 2019
1 parent 67689b8 commit 0cf3074
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/commands/protocol.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@
(warning error-policy)
(more-conditions:progress-condition
(lambda (condition)
(bt:interrupt-thread
main-thread (lambda ()
(sb-sys:without-interrupts
(bt:with-lock-held (lock)
(signal condition))))))))
(unless (eq progress-style :none)
(bt:interrupt-thread
main-thread (lambda ()
(sb-sys:without-interrupts
(bt:with-lock-held (lock)
(signal condition)))))))))
(let ((*configuration* configuration)
(*temp-directory* temp-directory)
(*cache-directory* cache-directory)
Expand Down

0 comments on commit 0cf3074

Please sign in to comment.