diff options
Diffstat (limited to 'src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc')
-rw-r--r-- | src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc index f51db76b99..46b057dcca 100644 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc +++ b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc @@ -41,10 +41,11 @@ void NamedPipeNotifier::run() { int fd = ::open(name_.toLocal8Bit().constData(), O_RDONLY); - if (-1 == fd) { // if open() fails + if (-1 == fd) { // if open() fails if ((errno != ENOENT) // we can only manage lack of pipe - || (-1 == ::mkfifo(name_.toLocal8Bit().constData(), 0666)) - || (-1 == (fd = ::open(name_.toLocal8Bit().constData(), O_RDONLY)))) { + || + (-1 == ::mkfifo(name_.toLocal8Bit().constData(), 0666)) || + (-1 == (fd = ::open(name_.toLocal8Bit().constData(), O_RDONLY)))) { emit openFailed(); return; } @@ -52,7 +53,7 @@ void NamedPipeNotifier::run() { ::fd_set readfds; FD_ZERO(&readfds); FD_SET(fd, &readfds); -// this select() is supposed to block till pipe is empty + // this select() is supposed to block till pipe is empty if (::select(fd + 1, &readfds, 0, 0, 0) > 0) { emit readyRead(); } |