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
09cc91d1
Commit
09cc91d1
authored
Apr 04, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the process socket is non-blocking.
Don't fail if nothing ready on recvmsg for a file descriptor.
parent
26ee2ca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
request.c
server/request.c
+8
-3
No files found.
server/request.c
View file @
09cc91d1
...
...
@@ -262,7 +262,9 @@ int receive_fd( struct process *process )
if
(
ret
>=
0
)
{
fprintf
(
stderr
,
"Protocol error: process %p: partial recvmsg %d for fd
\n
"
,
process
,
ret
);
if
(
ret
>
0
)
fprintf
(
stderr
,
"Protocol error: process %p: partial recvmsg %d for fd
\n
"
,
process
,
ret
);
kill_process
(
process
,
NULL
,
1
);
}
else
...
...
@@ -303,7 +305,8 @@ int send_client_fd( struct process *process, int fd, handle_t handle )
if
(
ret
>=
0
)
{
fprintf
(
stderr
,
"Protocol error: process %p: partial sendmsg %d
\n
"
,
process
,
ret
);
if
(
ret
>
0
)
fprintf
(
stderr
,
"Protocol error: process %p: partial sendmsg %d
\n
"
,
process
,
ret
);
kill_process
(
process
,
NULL
,
1
);
}
else
...
...
@@ -341,7 +344,9 @@ static void master_socket_poll_event( struct object *obj, int event )
struct
sockaddr_un
dummy
;
int
len
=
sizeof
(
dummy
);
int
client
=
accept
(
master_socket
->
obj
.
fd
,
(
struct
sockaddr
*
)
&
dummy
,
&
len
);
if
(
client
!=
-
1
)
create_process
(
client
);
if
(
client
==
-
1
)
return
;
fcntl
(
client
,
F_SETFL
,
O_NONBLOCK
);
create_process
(
client
);
}
}
...
...
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