> Then I try getting the fd flags:
> fcntl(fd, F_GETFL, flags)

Don't you really need to do this...

  flags = fcntl(fd, F_GETFL, 0)

to get the correct initial state of the flags?

Ed Jubenville



_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to