Change-Id: If104eb7074263e501ec7d998556384571c43714a
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
#include <libudev.h>
#include <glib.h>
+#include <fcntl.h>
#ifdef HAVE_SYSTEMD
# include <systemd/sd-daemon.h>
{
g_input_backend->main_to_input_thread_pipe_fd[0] = main_to_input_thread_pipe_fd[0];
g_input_backend->main_to_input_thread_pipe_fd[1] = main_to_input_thread_pipe_fd[1];
+
+ if (fcntl(g_input_backend->main_to_input_thread_pipe_fd[1], F_SETFL, O_NONBLOCK) < 0)
+ ERR("can't set pipe to NONBLOCK");
}
}