src: Add pipe() to handle stale fds.
src: Add pipe() to handle stale fds.

Reviewed-by: Stefan Metzmacher <f1988b9e977fc98ae4b41148d1c7fe6accb829c3@samba.org>

anoopcs9/socket_wrapper,jhrozek/socket_wrapper,jhrozek/socket_wrapper,anoopcs9/socket_wrapper