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
8b56deb8
Commit
8b56deb8
authored
Feb 12, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed direct references to the file descriptor, use the new fd
functions instead so that get_fd works properly.
parent
bf823755
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
named_pipe.c
server/named_pipe.c
+7
-7
No files found.
server/named_pipe.c
View file @
8b56deb8
...
...
@@ -169,8 +169,8 @@ static void pipe_user_destroy( struct object *obj)
if
(
user
->
other
)
{
close
(
user
->
other
->
obj
.
fd
);
user
->
other
->
obj
.
fd
=
-
1
;
close
_fd
(
user
->
other
->
obj
.
fd_obj
);
user
->
other
->
obj
.
fd
_obj
=
NULL
;
switch
(
user
->
other
->
state
)
{
case
ps_connected_server
:
...
...
@@ -330,7 +330,7 @@ DECL_HANDLER(open_named_pipe)
if
(
(
user
=
create_pipe_user
(
pipe
,
fds
[
1
]))
)
{
partner
->
obj
.
fd
=
fds
[
0
]
;
set_unix_fd
(
&
partner
->
obj
,
fds
[
0
]
)
;
notify_waiter
(
partner
,
STATUS_SUCCESS
);
partner
->
state
=
ps_connected_server
;
partner
->
other
=
user
;
...
...
@@ -443,13 +443,13 @@ DECL_HANDLER(disconnect_named_pipe)
if
(
(
user
->
state
==
ps_connected_server
)
&&
(
user
->
other
->
state
==
ps_connected_client
)
)
{
close
(
user
->
other
->
obj
.
fd
);
user
->
other
->
obj
.
fd
=
-
1
;
close
_fd
(
user
->
other
->
obj
.
fd_obj
);
user
->
other
->
obj
.
fd
_obj
=
NULL
;
user
->
other
->
state
=
ps_disconnected
;
user
->
other
->
other
=
NULL
;
close
(
user
->
obj
.
fd
);
user
->
obj
.
fd
=
-
1
;
close
_fd
(
user
->
obj
.
fd_obj
);
user
->
obj
.
fd
_obj
=
NULL
;
user
->
state
=
ps_idle_server
;
user
->
other
=
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