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
202ef690
Commit
202ef690
authored
Jun 07, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Print process/thread id instead of pointer in protocol errors.
parent
56026299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
request.c
server/request.c
+7
-7
No files found.
server/request.c
View file @
202ef690
...
...
@@ -141,7 +141,7 @@ void fatal_protocol_error( struct thread *thread, const char *err, ... )
va_list
args
;
va_start
(
args
,
err
);
fprintf
(
stderr
,
"Protocol error:%
p: "
,
threa
d
);
fprintf
(
stderr
,
"Protocol error:%
04x: "
,
thread
->
i
d
);
vfprintf
(
stderr
,
err
,
args
);
va_end
(
args
);
thread
->
exit_code
=
1
;
...
...
@@ -154,7 +154,7 @@ void fatal_protocol_perror( struct thread *thread, const char *err, ... )
va_list
args
;
va_start
(
args
,
err
);
fprintf
(
stderr
,
"Protocol error:%
p: "
,
threa
d
);
fprintf
(
stderr
,
"Protocol error:%
04x: "
,
thread
->
i
d
);
vfprintf
(
stderr
,
err
,
args
);
perror
(
" "
);
va_end
(
args
);
...
...
@@ -397,15 +397,15 @@ int receive_fd( struct process *process )
}
else
if
(
ret
>
0
)
{
fprintf
(
stderr
,
"Protocol error: process %
p
: partial recvmsg %d for fd
\n
"
,
process
,
ret
);
fprintf
(
stderr
,
"Protocol error: process %
04x
: partial recvmsg %d for fd
\n
"
,
process
->
id
,
ret
);
kill_process
(
process
,
NULL
,
1
);
}
else
{
if
(
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
{
fprintf
(
stderr
,
"Protocol error: process %
p: "
,
process
);
fprintf
(
stderr
,
"Protocol error: process %
04x: "
,
process
->
id
);
perror
(
"recvmsg"
);
kill_process
(
process
,
NULL
,
1
);
}
...
...
@@ -440,7 +440,7 @@ int send_client_fd( struct process *process, int fd, obj_handle_t handle )
if
(
ret
>=
0
)
{
fprintf
(
stderr
,
"Protocol error: process %
p: partial sendmsg %d
\n
"
,
process
,
ret
);
fprintf
(
stderr
,
"Protocol error: process %
04x: partial sendmsg %d
\n
"
,
process
->
id
,
ret
);
kill_process
(
process
,
NULL
,
1
);
}
else
if
(
errno
==
EPIPE
)
...
...
@@ -449,7 +449,7 @@ int send_client_fd( struct process *process, int fd, obj_handle_t handle )
}
else
{
fprintf
(
stderr
,
"Protocol error: process %
p: "
,
process
);
fprintf
(
stderr
,
"Protocol error: process %
04x: "
,
process
->
id
);
perror
(
"sendmsg"
);
kill_process
(
process
,
NULL
,
1
);
}
...
...
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