[vlc-commits] atmo: open serial port with close-on-exec flag

Rémi Denis-Courmont git at videolan.org
Tue May 19 22:30:16 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 19 23:26:44 2015 +0300| [139b927fd47d7098e70efb14054450e61b26752d] | committer: Rémi Denis-Courmont

atmo: open serial port with close-on-exec flag

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=139b927fd47d7098e70efb14054450e61b26752d
---

 modules/video_filter/atmo/AtmoClassicConnection.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/atmo/AtmoClassicConnection.cpp b/modules/video_filter/atmo/AtmoClassicConnection.cpp
index 486a0c2..e97403c 100644
--- a/modules/video_filter/atmo/AtmoClassicConnection.cpp
+++ b/modules/video_filter/atmo/AtmoClassicConnection.cpp
@@ -24,6 +24,7 @@
 #if !defined(_WIN32)
 #include <termios.h>
 #include <unistd.h>
+#include <vlc_fs.h>
 #endif
 
 
@@ -73,7 +74,7 @@ ATMO_BOOL CAtmoClassicConnection::OpenConnection() {
 #else
 
      int bconst = B38400;
-     m_hComport = open(serdevice,O_RDWR |O_NOCTTY);
+     m_hComport = vlc_open(serdevice,O_RDWR | O_NOCTTY);
      if(m_hComport < 0) {
 	    return ATMO_FALSE;
      }



More information about the vlc-commits mailing list