c ++ pipe: he is waiting for the writing

advertisements

I use pipes to communicate between processes. When I write to a pipe, and I read it slower than I write, will write() block until the atomic write to the pipe is possible?


Yes, at least if the number of bytes being written is smaller than the number guaranteed to be atomic.