mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Revert all close-on-exec changes from earlier today
with b26cc125 these are no longer needed.
This commit is contained in:
parent
b26cc12513
commit
4cb31ef74e
7 changed files with 4 additions and 61 deletions
|
|
@ -170,9 +170,6 @@ OSC::start ()
|
|||
if (!_osc_server) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int fd = lo_server_get_socket_fd (_osc_server);
|
||||
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
||||
|
||||
#ifdef ARDOUR_OSC_UNIX_SERVER
|
||||
|
||||
|
|
@ -181,7 +178,7 @@ OSC::start ()
|
|||
// attempt to create unix socket server too
|
||||
|
||||
snprintf(tmpstr, sizeof(tmpstr), "/tmp/sooperlooper_XXXXXX");
|
||||
fd = mkstemp(tmpstr);
|
||||
int fd = mkstemp(tmpstr);
|
||||
|
||||
if (fd >= 0 ) {
|
||||
unlink (tmpstr);
|
||||
|
|
@ -191,8 +188,6 @@ OSC::start ()
|
|||
|
||||
if (_osc_unix_server) {
|
||||
_osc_unix_socket_path = tmpstr;
|
||||
fd = lo_server_get_socket_fd (_osc_unix_server)
|
||||
fcntl(fdx, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -232,23 +227,19 @@ OSC::thread_init ()
|
|||
pthread_set_name (X_("OSC"));
|
||||
|
||||
if (_osc_unix_server) {
|
||||
const int fd = lo_server_get_socket_fd (_osc_unix_server);
|
||||
Glib::RefPtr<IOSource> src = IOSource::create (lo_server_get_socket_fd (_osc_unix_server), IO_IN|IO_HUP|IO_ERR);
|
||||
src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_unix_server));
|
||||
src->attach (_main_loop->get_context());
|
||||
local_server = src->gobj();
|
||||
g_source_ref (local_server);
|
||||
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
||||
}
|
||||
|
||||
if (_osc_server) {
|
||||
const int fd = lo_server_get_socket_fd (_osc_server);
|
||||
Glib::RefPtr<IOSource> src = IOSource::create (fd, IO_IN|IO_HUP|IO_ERR);
|
||||
Glib::RefPtr<IOSource> src = IOSource::create (lo_server_get_socket_fd (_osc_server), IO_IN|IO_HUP|IO_ERR);
|
||||
src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_server));
|
||||
src->attach (_main_loop->get_context());
|
||||
remote_server = src->gobj();
|
||||
g_source_ref (remote_server);
|
||||
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
||||
}
|
||||
|
||||
PBD::notify_gui_about_thread_creation (X_("gui"), pthread_self(), X_("OSC"), 2048);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue