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

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

parent f822d4a8
......@@ -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;
}
......
Markdown is supported
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