Hey there, I am trying to use knot-resolver on macos as a service through homebrew but it fails because stdin is /dev/null.
To reproduce it you can check with this:
make && sudo python -c 'import subprocess; subprocess.call(["daemon/kresd"], stdin=subprocess.DEVNULL)'
and this will be the output
[system] error error: couldn't start event poller
# I changed the code to also print the error that happened
Return of uv_strerror(ret): invalid argument%
but that is funny that it only happens when install http lib with luarocks using this luarocks --lua-dir=/usr/local/opt/lua@5.1 --tree /usr/local/ install http CRYPTO_DIR=/usr/local/opt/openssl OPENSSL_DIR=/usr/local/opt/openssl/
i found out if i remove this guard or make it go to the else it spawns the daemon fine.
Let me know if you need more information to find out what the bug is
Hey there, I am trying to use knot-resolver on macos as a service through homebrew but it fails because stdin is /dev/null. To reproduce it you can check with this:
and this will be the output
but that is funny that it only happens when install http lib with luarocks using this
luarocks --lua-dir=/usr/local/opt/lua@5.1 --tree /usr/local/ install http CRYPTO_DIR=/usr/local/opt/openssl OPENSSL_DIR=/usr/local/opt/openssl/
i found out if i remove this guard or make it go to the else it spawns the daemon fine.Let me know if you need more information to find out what the bug is