sahlberg / libnfs

NFS client library
Other
510 stars 200 forks source link

Rewrite RPC_LOG to use a callback logging function #492

Closed sahlberg closed 3 weeks ago

sahlberg commented 3 weeks ago

This macro right now unconditionally writes to stderr/ file descriptor 2. This breaks all embedded platforms and all applications that run in daemon mode as there is no guarantee that a console exist or that stderr/file descriptor 2 refers to a an actual file. For many daemons file descriptor 2 might be a socket to talk to mysql for all we know.