cope with programs that leave fd in non-blocking mode (Tim Wiess)
This commit is contained in:
parent
3802adb118
commit
edc77f0b2b
2 changed files with 27 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ Rcmain(void)
|
|||
}
|
||||
|
||||
char Fdprefix[]="/dev/fd/";
|
||||
long readnb(int, char *, long);
|
||||
void execfinit(void);
|
||||
void execbind(void);
|
||||
void execmount(void);
|
||||
|
|
@ -488,7 +489,7 @@ long Read(int fd, char *buf, long cnt)
|
|||
{
|
||||
int i;
|
||||
|
||||
i = read(fd, buf, cnt);
|
||||
i = readnb(fd, buf, cnt);
|
||||
if(ntrap) dotrap();
|
||||
return i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue