Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d8bfbbdc
Commit
d8bfbbdc
authored
Dec 02, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Signal pipe server fd in create_pipe_server.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ce4ae68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
pipe.c
dlls/kernel32/tests/pipe.c
+8
-0
named_pipe.c
server/named_pipe.c
+1
-0
No files found.
dlls/kernel32/tests/pipe.c
View file @
d8bfbbdc
...
...
@@ -110,6 +110,13 @@ static BOOL RpcReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD
return
(
BOOL
)
rpcargs
.
returnValue
;
}
#define test_signaled(h) _test_signaled(__LINE__,h)
static
void
_test_signaled
(
unsigned
line
,
HANDLE
handle
)
{
DWORD
res
=
WaitForSingleObject
(
handle
,
0
);
ok_
(
__FILE__
,
line
)(
res
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %u
\n
"
,
res
);
}
static
void
test_CreateNamedPipe
(
int
pipemode
)
{
HANDLE
hnp
;
...
...
@@ -176,6 +183,7 @@ static void test_CreateNamedPipe(int pipemode)
/* nDefaultWait */
NMPWAIT_USE_DEFAULT_WAIT
,
/* lpSecurityAttrib */
NULL
);
ok
(
hnp
!=
INVALID_HANDLE_VALUE
,
"CreateNamedPipe failed
\n
"
);
test_signaled
(
hnp
);
ret
=
WaitNamedPipeA
(
PIPENAME
,
2000
);
ok
(
ret
,
"WaitNamedPipe failed (%d)
\n
"
,
GetLastError
());
...
...
server/named_pipe.c
View file @
d8bfbbdc
...
...
@@ -690,6 +690,7 @@ static struct pipe_server *create_pipe_server( struct named_pipe *pipe, unsigned
release_object
(
server
);
return
NULL
;
}
set_fd_signaled
(
server
->
ioctl_fd
,
1
);
set_server_state
(
server
,
ps_idle_server
);
return
server
;
}
...
...
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