rdist: error() and fatal() only do work in server
cmd - userland programs
The descriptor passed for fdopen() is only set in server component. We need to call fdopen() in server leg of if statement.
Testing done: with fix, we can see error messages generated in client.