Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bc426ab0
Commit
bc426ab0
authored
Apr 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Explicitly shutdown closed pipes to prevent access from file descriptors…
server: Explicitly shutdown closed pipes to prevent access from file descriptors cached in the client.
parent
64ba011d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
file.c
dlls/ntdll/file.c
+1
-1
mailslot.c
server/mailslot.c
+2
-0
named_pipe.c
server/named_pipe.c
+1
-0
No files found.
dlls/ntdll/file.c
View file @
bc426ab0
...
...
@@ -282,7 +282,7 @@ NTSTATUS FILE_GetNtStatus(void)
case
ENFILE
:
return
STATUS_TOO_MANY_OPENED_FILES
;
case
EINVAL
:
return
STATUS_INVALID_PARAMETER
;
case
ENOTEMPTY
:
return
STATUS_DIRECTORY_NOT_EMPTY
;
case
EPIPE
:
return
STATUS_PIPE_
BROKEN
;
case
EPIPE
:
return
STATUS_PIPE_
DISCONNECTED
;
case
EIO
:
return
STATUS_DEVICE_NOT_READY
;
#ifdef ENOMEDIUM
case
ENOMEDIUM
:
return
STATUS_NO_MEDIA_IN_DEVICE
;
...
...
server/mailslot.c
View file @
bc426ab0
...
...
@@ -197,6 +197,7 @@ static void mailslot_destroy( struct object *obj)
assert
(
mailslot
->
fd
);
assert
(
mailslot
->
write_fd
);
shutdown
(
get_unix_fd
(
mailslot
->
fd
),
SHUT_RDWR
);
release_object
(
mailslot
->
fd
);
release_object
(
mailslot
->
write_fd
);
}
...
...
@@ -408,6 +409,7 @@ static struct mailslot *create_mailslot( struct directory *root,
{
fcntl
(
fds
[
0
],
F_SETFL
,
O_NONBLOCK
);
fcntl
(
fds
[
1
],
F_SETFL
,
O_NONBLOCK
);
shutdown
(
fds
[
0
],
SHUT_RD
);
mailslot
->
fd
=
create_anonymous_fd
(
&
mailslot_fd_ops
,
fds
[
1
],
&
mailslot
->
obj
);
mailslot
->
write_fd
=
create_anonymous_fd
(
&
mail_writer_fd_ops
,
...
...
server/named_pipe.c
View file @
bc426ab0
...
...
@@ -338,6 +338,7 @@ static void do_disconnect( struct pipe_server *server )
server
->
client
->
fd
=
NULL
;
}
assert
(
server
->
fd
);
shutdown
(
get_unix_fd
(
server
->
fd
),
SHUT_RDWR
);
release_object
(
server
->
fd
);
server
->
fd
=
NULL
;
}
...
...
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