forked from enlightenment/enlightenment
modules/mixer: Check fcntl setting CLOEXEC for success
We still keep going if this fails but print out an error. CID: 1039960
This commit is contained in:
parent
bbd35e82c3
commit
98457f7332
|
@ -377,7 +377,7 @@ con(Pulse *conn, int type __UNUSED__, Ecore_Con_Event_Server_Add *ev)
|
|||
|
||||
flags = fcntl(conn->fd, F_GETFD);
|
||||
flags |= FD_CLOEXEC;
|
||||
fcntl(conn->fd, F_SETFD, flags);
|
||||
if (fcntl(conn->fd, F_SETFD, flags) < 0) ERR("Cannot set CLOEXEC on fd");
|
||||
|
||||
conn->fdh = ecore_main_fd_handler_add(conn->fd, ECORE_FD_WRITE, (Ecore_Fd_Cb)fdh_func, conn, NULL, NULL);
|
||||
ecore_con_server_del(conn->svr);
|
||||
|
|
Loading…
Reference in New Issue