Show
Ignore:
Timestamp:
09/03/09 21:38:45 (5 years ago)
Author:
saturday06
Message:

もうだめだ。もうあどふぃじゃkldf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/src/os-windows/fakecygpty.c

    r35148 r35185  
    199199            int ret = read(0, buf, sizeof(buf)); 
    200200            if (ret > 0) { 
    201                 write(master_fd, buf, ret); 
     201                int ret2 = write(master_fd, buf, ret); 
     202                if (ret2 == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) { 
     203                    e("write(master_fd): noblocking !?"); 
     204                } 
    202205            } else if (ret == 0 || (errno != EAGAIN && errno != EWOULDBLOCK)) { 
    203206                break;