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
0a364629
Commit
0a364629
authored
Mar 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fixed process exit code on FreeBSD.
parent
68f8d289
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
process.c
server/process.c
+1
-1
request.c
server/request.c
+7
-4
No files found.
server/process.c
View file @
0a364629
...
@@ -660,7 +660,7 @@ void kill_process( struct process *process, struct thread *skip, int exit_code )
...
@@ -660,7 +660,7 @@ void kill_process( struct process *process, struct thread *skip, int exit_code )
{
{
struct
thread
*
thread
=
LIST_ENTRY
(
ptr
,
struct
thread
,
proc_entry
);
struct
thread
*
thread
=
LIST_ENTRY
(
ptr
,
struct
thread
,
proc_entry
);
thread
->
exit_code
=
exit_code
;
if
(
exit_code
)
thread
->
exit_code
=
exit_code
;
if
(
thread
!=
skip
)
kill_thread
(
thread
,
1
);
if
(
thread
!=
skip
)
kill_thread
(
thread
,
1
);
}
}
}
}
...
...
server/request.c
View file @
0a364629
...
@@ -389,11 +389,14 @@ int receive_fd( struct process *process )
...
@@ -389,11 +389,14 @@ int receive_fd( struct process *process )
return
0
;
return
0
;
}
}
if
(
ret
>=
0
)
if
(
!
ret
)
{
kill_process
(
process
,
NULL
,
0
);
}
else
if
(
ret
>
0
)
{
{
if
(
ret
>
0
)
fprintf
(
stderr
,
"Protocol error: process %p: partial recvmsg %d for fd
\n
"
,
fprintf
(
stderr
,
"Protocol error: process %p: partial recvmsg %d for fd
\n
"
,
process
,
ret
);
process
,
ret
);
kill_process
(
process
,
NULL
,
1
);
kill_process
(
process
,
NULL
,
1
);
}
}
else
else
...
...
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