Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
1673cc2b
Commit
1673cc2b
authored
Apr 01, 2018
by
Philippe Gerum
Browse files
copperplate/registry: set close-on-exec flag on client socket
See
http://xenomai.org/pipermail/xenomai/2018-March/038593.html
parent
1cdcf888
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/copperplate/registry.c
View file @
1673cc2b
...
...
@@ -717,7 +717,7 @@ static int connect_regd(const char *sessdir, char **mountpt, int flags)
sun
.
sun_path
[
0
]
=
'\0'
;
for
(
retries
=
0
;
retries
<
3
;
retries
++
)
{
s
=
__STD
(
socket
(
AF_UNIX
,
SOCK_SEQPACKET
,
0
));
s
=
__STD
(
socket
(
AF_UNIX
,
SOCK_SEQPACKET
|
SOCK_CLOEXEC
,
0
));
if
(
s
<
0
)
{
ret
=
-
errno
;
free
(
*
mountpt
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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