summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-07-08 19:06:49 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-07-08 19:06:49 +0000
commit9674c7f418dae721856ff923cac7d7200668a4fb (patch)
treef97ff605f0286f98c05ec165d1c760754be60d01
parentde1c1d80a96c54883d60f939594b678f0bb90504 (diff)
Removed dead flag
-rw-r--r--src/htslib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/htslib.c b/src/htslib.c
index 4e549e4..64c15b3 100644
--- a/src/htslib.c
+++ b/src/htslib.c
@@ -2283,8 +2283,7 @@ T_SOC newhttp(httrackp * opt, const char *_iadr, htsblk * retour, int port,
#else
const int flags = fcntl(soc, F_GETFL, 0);
unsigned long p = 1; // non bloquant
- if (flags == -1 /*|| fcntl(soc, F_SETFL, flags | O_NONBLOCK) == -1*/
- || ioctl(soc, FIONBIO, &p) != 0) {
+ if (flags == -1 || fcntl(soc, F_SETFL, flags | O_NONBLOCK) == -1) {
snprintf(retour->msg, sizeof(retour->msg),
"Non-blocking socket failed: %s", strerror(errno));
deletesoc(soc);