Closed wangbj closed 5 years ago
A syscall can be restarted by kernel when seeing interrupted signals, kernel return with error code such as ERESTARTSYS, ERESTARTNOINTR, ERESTARTNOHAND, and ERESTARTBLOCK. systrace must handle them correctly, or the program could block.
ERESTARTSYS
ERESTARTNOINTR
ERESTARTNOHAND
ERESTARTBLOCK
systrace
This issue should be fixed by db78f83a
A syscall can be restarted by kernel when seeing interrupted signals, kernel return with error code such as
ERESTARTSYS
,ERESTARTNOINTR
,ERESTARTNOHAND
, andERESTARTBLOCK
.systrace
must handle them correctly, or the program could block.