(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))...
JDK-4178050 : hpi needs to handle EINTR (Socket reads and writes randomly throw InterruptedIOEType: Bug Component: hotspot Sub-Component: runtime Affected Version: 1.2.0,1.2.1_004,1.2.2_005,1.3.0,1.3.1,1.3.1_04,1.4.0 Priority: P3 Status: Closed Resolution: Fixed OS: solaris_2.6...
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