raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e41d5e11bb85da8372970628e6da588b3d210501

commit e41d5e11bb85da8372970628e6da588b3d210501
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Aug 6 18:55:28 2019 +0100

    e sys l2ping - report errors on fcntl failure
    
    fix CID 1403933
---
 src/bin/e_sys_l2ping.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_sys_l2ping.c b/src/bin/e_sys_l2ping.c
index d467424ed..4805f8171 100644
--- a/src/bin/e_sys_l2ping.c
+++ b/src/bin/e_sys_l2ping.c
@@ -49,7 +49,10 @@ e_sys_l2ping(const char *bluetooth_mac, int timeout_ms)
         return -1;
      }
 
-   fcntl(fd, F_SETFL, O_NONBLOCK);
+   if (fcntl(fd, F_SETFL, O_NONBLOCK) != 0)
+     {
+        perror("Can't set socket to non-blocking... continue");
+     }
 
    // Connect to remote device
    memset(&addr, 0, sizeof(addr));

-- 


Reply via email to