Skip to content

Commit

Permalink
Avoid warning when WARN_CREATE_GLOBAL is active (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed May 14, 2020
1 parent 50d34cd commit fa94826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ async_start_worker() {
# reassigned to /dev/null by the reassignment done inside the async
# worker.
# See https://github.com/mafredri/zsh-async/issues/35.
integer errfd
exec {errfd}>&2
zpty -b $worker _async_worker -p $$ $args 2>&$errfd || {
exec {errfd}>& -
Expand Down

0 comments on commit fa94826

Please sign in to comment.