Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
139b927f
Commit
139b927f
authored
May 19, 2015
by
Rémi Denis-Courmont
Browse files
atmo: open serial port with close-on-exec flag
parent
f822d4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/atmo/AtmoClassicConnection.cpp
View file @
139b927f
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment