Commit 139b927f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

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

parent f822d4a8
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#if !defined(_WIN32) #if !defined(_WIN32)
#include <termios.h> #include <termios.h>
#include <unistd.h> #include <unistd.h>
#include <vlc_fs.h>
#endif #endif
...@@ -73,7 +74,7 @@ ATMO_BOOL CAtmoClassicConnection::OpenConnection() { ...@@ -73,7 +74,7 @@ ATMO_BOOL CAtmoClassicConnection::OpenConnection() {
#else #else
int bconst = B38400; int bconst = B38400;
m_hComport = open(serdevice,O_RDWR |O_NOCTTY); m_hComport = vlc_open(serdevice,O_RDWR | O_NOCTTY);
if(m_hComport < 0) { if(m_hComport < 0) {
return ATMO_FALSE; return ATMO_FALSE;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment