What's a file descriptor's “exception”?

前端 未结 2 985
北荒
北荒 2021-02-13 02:11

When one calls select() asking which file descriptors have \"exceptions\" waiting, what does that mean?

How does one trigger one of these \"exceptions\"?

If anyo

2条回答
  •  迷失自我
    2021-02-13 02:28

    Indeed there seems to be very little information on this. Thankfully there's an existing question with a very good answer.

    In the case of Linux, for example, it can denote out-of-band data being received on a stream socket, or "a state change occuring on a pseudoterminal slave connected to a master that is in packet mode" (TLPI 63.2.1).

提交回复
热议问题