For example, if you close a pipe or socket that still has data in its write buffer that hasn't been read by the process on the other end, does close() block until the data is read or the other process dies?
Can close() block
fifofilespipesocket
fifofilespipesocket
For example, if you close a pipe or socket that still has data in its write buffer that hasn't been read by the process on the other end, does close() block until the data is read or the other process dies?
Best Answer
Yes,
close
can block:And: