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
bff32557
Commit
bff32557
authored
Oct 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Pass a process as parent to create_process().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a77ef5c4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
process.c
server/process.c
+3
-4
process.h
server/process.h
+1
-1
No files found.
server/process.c
View file @
bff32557
...
...
@@ -484,7 +484,7 @@ static void start_sigkill_timer( struct process *process )
/* create a new process */
/* if the function fails the fd is closed */
struct
process
*
create_process
(
int
fd
,
struct
thread
*
parent_thread
,
int
inherit_all
,
struct
process
*
create_process
(
int
fd
,
struct
process
*
parent
,
int
inherit_all
,
const
struct
security_descriptor
*
sd
)
{
struct
process
*
process
;
...
...
@@ -547,7 +547,7 @@ struct process *create_process( int fd, struct thread *parent_thread, int inheri
if
(
!
(
process
->
msg_fd
=
create_anonymous_fd
(
&
process_fd_ops
,
fd
,
&
process
->
obj
,
0
)))
goto
error
;
/* create the handle table */
if
(
!
parent
_thread
)
if
(
!
parent
)
{
process
->
handles
=
alloc_handle_table
(
process
,
0
);
process
->
token
=
token_create_admin
();
...
...
@@ -555,7 +555,6 @@ struct process *create_process( int fd, struct thread *parent_thread, int inheri
}
else
{
struct
process
*
parent
=
parent_thread
->
process
;
process
->
parent_id
=
parent
->
id
;
process
->
handles
=
inherit_all
?
copy_handle_table
(
process
,
parent
)
:
alloc_handle_table
(
process
,
0
);
...
...
@@ -1162,7 +1161,7 @@ DECL_HANDLER(new_process)
#undef FIXUP_LEN
}
if
(
!
(
process
=
create_process
(
socket_fd
,
cur
rent
,
req
->
inherit_all
,
sd
)))
goto
done
;
if
(
!
(
process
=
create_process
(
socket_fd
,
pa
rent
,
req
->
inherit_all
,
sd
)))
goto
done
;
process
->
startup_info
=
(
struct
startup_info
*
)
grab_object
(
info
);
...
...
server/process.h
View file @
bff32557
...
...
@@ -115,7 +115,7 @@ struct process_snapshot
extern
unsigned
int
alloc_ptid
(
void
*
ptr
);
extern
void
free_ptid
(
unsigned
int
id
);
extern
void
*
get_ptid_entry
(
unsigned
int
id
);
extern
struct
process
*
create_process
(
int
fd
,
struct
thread
*
parent_thread
,
int
inherit_all
,
extern
struct
process
*
create_process
(
int
fd
,
struct
process
*
parent
,
int
inherit_all
,
const
struct
security_descriptor
*
sd
);
extern
data_size_t
init_process
(
struct
thread
*
thread
);
extern
struct
thread
*
get_process_first_thread
(
struct
process
*
process
);
...
...
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