We have more and more laptops having 'Error: Interrupted system call' while run brew upgrade on macOS BigSur.
I switched off Real Time Scanning > File on Sophos endpoint, then enduser could do brew upgrade successfully.
Since Real Time Scanning is quite important to us, we can't switch it off company wide.
Could you work out a solution on this asap?
Below is part of error
==> Upgrading nginx 1.19.2 -> 1.19.8
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.19.8.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3cd6595498e228fff4f9b99c629ef759906f1d3b90d5aac0eddbc21631948a56?response-content-disposition=attachment%3Bfilename%3D%22nginx-1.19.8.big_sur.bottle.tar.gz%22&Policy=eyJTdGF0ZW1lb
######################################################################## 100.0%
==> Pouring nginx-1.19.8.big_sur.bottle.tar.gz
Error: Failed to read Mach-O binary: /usr/local/Cellar/nginx/1.19.8/.bottle/etc/nginx/uwsgi_params
Error: Interrupted system call @ rb_sysopen - /usr/local/Cellar/nginx/1.19.8/homebrew.mxcl.nginx.plist
This thread was automatically locked due to age.