tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: flock(2): locking against itself?



On Thu, 30 Mar 2023, Mouse wrote:

Another option is to use newterm() in curses with a funopen()ed stream
for output which queues the output to be written (nonblockingly) to the
real stdout.


Would toggling O_NONBLOCK using fcntl() work for you? A bit tedious, but
it can be done "per operation".

-RVP



Home | Main Index | Thread Index | Old Index