1 #ifndef MYTH_BASE_UTIL_H
2 #define MYTH_BASE_UTIL_H
24 int pipe_ret = pipe(mypipe.data());
27 LOG(VB_GENERAL, LOG_ERR,
"Failed to open pipes" +
ENO);
33 long flags = fcntl(mypipe[0], F_GETFL);
36 int ret = fcntl(mypipe[0], F_SETFL, flags|
O_NONBLOCK);
38 LOG(VB_GENERAL, LOG_ERR,
39 QString(
"Set pipe flags error") +
ENO);
43 LOG(VB_GENERAL, LOG_ERR, QString(
"Get pipe flags error") +
ENO);
46 for (
uint i = 0; i < 2; i++)
49 flags = fcntl(mypipe[i], F_GETFL);
57 #endif // MYTH_BASE_UTIL_H