212d8f4 Use send() in client library to avoid SIGPIPE

Authored and Committed by simo 11 years ago
    Use send() in client library to avoid SIGPIPE
    
    The client library lives in applications that may not be blocking or ignoring
    SIGPIPE. Using write() can cause SIGPIPE to be raised in the application if the
    proxy is restarted. If the application does not catch the signal then it is
    terminated.
    
    Make sure this does not happen by using send() with the MSG_NOSIGNAL flag.
    
    Signed-off-by: Simo Sorce <simo@redhat.com>