Problems with FIFO open in non-blocking mode?

1999-09-06 Thread Alex Povolotsky
Hello! The following program #include stdio.h #include fcntl.h main() { int control; if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) { perror("Could not open STATUS "); exit(1); } printf("STATUS ready\n");

Re: Problems with FIFO open in non-blocking mode?

1999-09-06 Thread Andrew Gierth
"Alex" == Alex Povolotsky [EMAIL PROTECTED] writes: Alex if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) { Alex fails to run (STATUS is pre-created FIFO file) with error Alex "Device not configured", which seems kinda odd for me. Alex However, when FIFO is opened with O_RDWR and

Re: Problems with FIFO open in non-blocking mode?

1999-09-06 Thread Zhihui Zhang
On Mon, 6 Sep 1999, Alex Povolotsky wrote: Hello! The following program #include stdio.h #include fcntl.h main() { int control; if ((control = open("STATUS",O_WRONLY|O_NONBLOCK))0) { perror("Could not open STATUS "); exit(1); }

Re: Problems with FIFO open in non-blocking mode?

1999-09-06 Thread Andrew Gierth
Alex == Alex Povolotsky tark...@asteroid.svib.ru writes: Alex if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) { Alex fails to run (STATUS is pre-created FIFO file) with error Alex Device not configured, which seems kinda odd for me. Alex However, when FIFO is opened with O_RDWR and

Re: Problems with FIFO open in non-blocking mode?

1999-09-06 Thread Zhihui Zhang
On Mon, 6 Sep 1999, Alex Povolotsky wrote: Hello! The following program #include stdio.h #include fcntl.h main() { int control; if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) { perror(Could not open STATUS ); exit(1); }

Problems with FIFO open in non-blocking mode?

1999-09-05 Thread Alex Povolotsky
Hello! The following program #include stdio.h #include fcntl.h main() { int control; if ((control = open(STATUS,O_WRONLY|O_NONBLOCK))0) { perror(Could not open STATUS ); exit(1); } printf(STATUS ready\n); close(control);