cost 252 ms
EINTR and non-blocking calls

As is known, some blocking calls like read and write would return -1 and set errno to EINTR, and we need handle this. My question is: Does this apply ...

Blocking functions and EINTR

Many POSIX blocking functions return EINTR in case of a signal. The idea is that signal handler sets a flag first (say 'stop' flag in case of SIGINT), ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM