+/* create a file descriptor - like pipe() but use socketpair if
+ possible (because of blocking issues on pipes */
+int fd_pair(int fd[2])
+{
+#if HAVE_SOCKETPAIR
+ return socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
+#else
+ return pipe(fd);
+#endif
+}
+
+