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
11342151
Commit
11342151
authored
Apr 08, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary hack to share handles between processes sharing the same
address space.
parent
416a00d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
process.c
scheduler/process.c
+1
-1
process.c
server/process.c
+3
-4
No files found.
scheduler/process.c
View file @
11342151
...
...
@@ -517,7 +517,7 @@ PDB *PROCESS_Create( NE_MODULE *pModule, HFILE hFile, LPCSTR cmd_line, LPCSTR en
req
->
pinherit
=
(
psa
&&
(
psa
->
nLength
>=
sizeof
(
*
psa
))
&&
psa
->
bInheritHandle
);
req
->
tinherit
=
(
tsa
&&
(
tsa
->
nLength
>=
sizeof
(
*
tsa
))
&&
tsa
->
bInheritHandle
);
req
->
inherit_all
=
inherit
;
req
->
inherit_all
=
2
/*inherit*/
;
/* HACK! */
req
->
create_flags
=
flags
;
req
->
start_flags
=
startup
->
dwFlags
;
req
->
exe_file
=
hFile
;
...
...
server/process.c
View file @
11342151
...
...
@@ -169,15 +169,14 @@ struct thread *create_process( int fd, struct process *parent,
/* copy the request structure */
if
(
!
set_creation_info
(
process
,
req
,
cmd_line
,
len
))
goto
error
;
if
(
process
->
info
->
inherit_all
)
if
(
process
->
info
->
inherit_all
==
2
)
/* HACK! */
process
->
handles
=
grab_object
(
parent
->
handles
);
else
if
(
process
->
info
->
inherit_all
)
process
->
handles
=
copy_handle_table
(
process
,
parent
);
else
process
->
handles
=
alloc_handle_table
(
process
,
0
);
if
(
!
process
->
handles
)
goto
error
;
/* alloc a handle for the process itself */
alloc_handle
(
process
,
process
,
PROCESS_ALL_ACCESS
,
0
);
/* retrieve the main exe file */
if
(
process
->
info
->
exe_file
!=
-
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