pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:1998: Inside #if defined(HAVE_WRITEV)
   {    default:    free(iovbase);    ERRNO=errno=e;    pop_n_elems(args);    if (!written) {    push_int(-1);    } else {    push_int(written);    } +  /* Minor race - see below. */ +  THIS->box.revents &= ~(PIKE_BIT_FD_WRITE|PIKE_BIT_FD_WRITE_OOB);    return;       case EINTR: continue;    case EWOULDBLOCK: break;    /* FIXME: Special case for ENOTSOCK? */    }    break;    }else{    written += i;   
pike.git/src/modules/_Stdio/file.c:2044: Inside #if defined(HAVE_WRITEV) and #if defined(_REENTRANT)
  #ifdef _REENTRANT    if (FD<0) {    free(iovbase);    Pike_error("File closed while in file->write.\n");    }   #endif    }       free(iovbase);    +  /* Minor race - see below. */ +  THIS->box.revents &= ~(PIKE_BIT_FD_WRITE|PIKE_BIT_FD_WRITE_OOB); +     if(!SAFE_IS_ZERO(& THIS->event_cbs[PIKE_FD_WRITE]))    ADD_FD_EVENTS (THIS, PIKE_BIT_FD_WRITE);    ERRNO=0;       pop_stack();    push_int(written);    return;    }   #endif /* HAVE_WRITEV */    }