Project

General

Profile

Bug #16903 ยป cygwin.patch

fd0 (Daisuke Fujimura), 05/20/2020 01:28 PM

View differences:

io.c
409 409
        return result;
410 410

  
411 411
#ifdef __CYGWIN__
412
    if (ret == 0 && descriptors[1] == -1) {
412
    if (result == 0 && descriptors[1] == -1) {
413 413
        close(descriptors[0]);
414 414
        descriptors[0] = -1;
415 415
        errno = ENFILE;