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:
Stefan Schmidt 2014-09-19 11:25:59 +02:00
parent bbd35e82c3
commit 98457f7332
1 changed files with 1 additions and 1 deletions

View File

@ -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);