Skip to content

Commit 11dc049

Browse files
committed
remove the exception handling
this is not for errors, rather than for urgent data etc.
1 parent 87fd8fc commit 11dc049

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

network.tex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,6 @@
13411341
\emprg{FD\_ZERO}(&rfdset); \emprg{FD\_SET}(0, &rfdset);
13421342
\emprg{FD\_SET}(fd, &rfdset); efdset = rfdset;
13431343
\emprg{select}(fd+1, &rfdset, NULL, &efdset, NULL);
1344-
if(\emprg{FD\_ISSET}(0, &efdset))
1345-
/* exception on stdin */ ;
1346-
if(\emprg{FD\_ISSET}(fd, &efdset))
1347-
/* exception on fd */ ;
13481344
if(\emprg{FD\_ISSET}(0, &rfdset)) \{
13491345
sz = read(0, buf, BUFSZ); write(fd, buf, sz); \}
13501346
if(\emprg{FD\_ISSET}(fd, &rfdset)) \{

0 commit comments

Comments
 (0)