Fixed blocking of program when opening a named pipe by adding O_NONBLOCK flag