Revert all close-on-exec changes from earlier today
[ardour.git] / libs / midi++2 / ipmidi_port.cc
index 543c63e343dfbe4920fa0005e610584666807fa3..c90a3dbe6fd133a2200c21cf4ce38fd9e92ed2e6 100644 (file)
@@ -160,8 +160,6 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
                return false;
        }
 
-       fcntl(sockin, F_SETFD, fcntl(sockin, F_GETFD) | FD_CLOEXEC);
-
        struct sockaddr_in addrin;
        ::memset(&addrin, 0, sizeof(addrin));
        addrin.sin_family = AF_INET;
@@ -208,8 +206,6 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
                ::perror("socket(out)");
                return false;
        }
-
-       fcntl(sockout, F_SETFD, fcntl(sockout, F_GETFD) | FD_CLOEXEC);
        
        // Will Hall, Oct 2007
        if (!ifname.empty()) {