gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33728 - gnunet/src/conversation


From: gnunet
Subject: [GNUnet-SVN] r33728 - gnunet/src/conversation
Date: Tue, 17 Jun 2014 22:39:10 +0200

Author: grothoff
Date: 2014-06-17 22:39:10 +0200 (Tue, 17 Jun 2014)
New Revision: 33728

Modified:
   gnunet/src/conversation/gnunet-conversation.c
Log:
-check return value

Modified: gnunet/src/conversation/gnunet-conversation.c
===================================================================
--- gnunet/src/conversation/gnunet-conversation.c       2014-06-17 20:37:46 UTC 
(rev 33727)
+++ gnunet/src/conversation/gnunet-conversation.c       2014-06-17 20:39:10 UTC 
(rev 33728)
@@ -1275,7 +1275,9 @@
   int flags;
   flags = fcntl (0, F_GETFL, 0);
   flags |= O_NONBLOCK;
-  fcntl (0, F_SETFL, flags);
+  if (0 != fcntl (0, F_SETFL, flags))
+    GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,
+                         "fcntl");
   stdin_fh = GNUNET_DISK_get_handle_from_int_fd (0);
 #else
   if (FILE_TYPE_CHAR == GetFileType ((HANDLE) _get_osfhandle (0)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]