MacOS client 2020

So I finally made a patch and it worked. The problem is that a popen is made for the first command and before a pclose happens a another nested popen is made.

Look at the FreeBSD docs for the popen on the section bugs. This is supposedly the cause of the problem.

My first test is working now. I will review the code and clean it up. Then I’ll send you a PR.