Conky-for-macOS / conky-for-macOS

macOS port of the Light-weight system monitor for X.
https://github.com/Conky-for-macOS/conky-for-macOS/wiki
GNU General Public License v3.0
157 stars 9 forks source link

`if_up` not working #31

Closed matmunn closed 6 years ago

matmunn commented 6 years ago

Using the if_up variable results in conky dying with the error "could not create sockfd"

npyl commented 6 years ago

In net_stat.cc, line 468, socket() function fails with error 43: Protocol not supported.

I noticed that the SOCK_CLOEXEC flag causes socket() to fail. This could mean that the code as it is now (-works on Linux and most likely on FreeBSD-) is invalid for macOS or that macOS has a bug.

Deleting the flag makes the problem disappear, but I am going to investigate further to see if this is the optimal solution.

You can pull the latest commit and recompile, it should now work.

matmunn commented 6 years ago

You're a legend, thanks so much

npyl commented 6 years ago

You are welcome!!!