Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
4ea447b7
Commit
4ea447b7
authored
Jul 08, 2017
by
Christian Brauner
Committed by
GitHub
Jul 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1683 from 0x0916/2017-07-08/remove-unlink
af_unix: remove unlink operation
parents
186f27db
42c6141c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
af_unix.c
src/lxc/af_unix.c
+0
-10
No files found.
src/lxc/af_unix.c
View file @
4ea447b7
...
@@ -42,9 +42,6 @@ int lxc_abstract_unix_open(const char *path, int type, int flags)
...
@@ -42,9 +42,6 @@ int lxc_abstract_unix_open(const char *path, int type, int flags)
size_t
len
;
size_t
len
;
struct
sockaddr_un
addr
;
struct
sockaddr_un
addr
;
if
(
flags
&
O_TRUNC
)
unlink
(
path
);
fd
=
socket
(
PF_UNIX
,
type
,
0
);
fd
=
socket
(
PF_UNIX
,
type
,
0
);
if
(
fd
<
0
)
if
(
fd
<
0
)
return
-
1
;
return
-
1
;
...
@@ -86,13 +83,6 @@ int lxc_abstract_unix_open(const char *path, int type, int flags)
...
@@ -86,13 +83,6 @@ int lxc_abstract_unix_open(const char *path, int type, int flags)
int
lxc_abstract_unix_close
(
int
fd
)
int
lxc_abstract_unix_close
(
int
fd
)
{
{
struct
sockaddr_un
addr
;
socklen_t
addrlen
=
sizeof
(
addr
);
if
(
!
getsockname
(
fd
,
(
struct
sockaddr
*
)
&
addr
,
&
addrlen
)
&&
addr
.
sun_path
[
0
])
unlink
(
addr
.
sun_path
);
close
(
fd
);
close
(
fd
);
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
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