(void)HANDLE_EINTR(close (1));#ifndefDEBUGxclosefrom (2);#elsexclosefrom (3);#endifchar*constargv[] = { SBCELT_HelperBinary(),NULL, }; execv(argv[0], argv); _exit(100); }intstatus;intretval =HANDLE_EINTR(waitpid(child, &status,0));if(retval == child) {if(WIFEXITED(status))...
Any write could be interupted by EINTR if we get some kind of signal, which means we could be either reporting a EINTR error or a partial write (if some data was written). Its also generally good to handle partial writes correctly, as they can happen e.g. when writing to full pipes...
// open(2) to be restarted for regular files. This is easy to reproduce on // fuse file systems (see http://golang.org/issue/11180). ife==syscall.EINTR{ gotoretry } returnnil,&PathError{"open",name,e} } Expand Down
0932-utmp-wtmp-handle-EINTR-gracefully-when-waiting-to-wr.patch 1.73 KB 一键复制 编辑 原始数据 按行查看 历史 Zhao Hang 提交于 1年前 . update to systemd-239-78.src.rpm 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 From 3590a9c5ce038bc56cdded426156cbd27...
A daemon that handles the userspace side of the LIO TCM-User backstore. - libtcmu: Handle EINTR in start/complete command · open-iscsi/tcmu-runner@689b24c