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
17e3b973
Commit
17e3b973
authored
Mar 23, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create startup info for the initial process.
parent
875c4b3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
process.c
server/process.c
+13
-0
No files found.
server/process.c
View file @
17e3b973
...
...
@@ -111,8 +111,21 @@ static void init_process( struct process *process )
/* create the initial process */
struct
process
*
create_initial_process
(
void
)
{
struct
new_process_request
*
info
;
copy_handle_table
(
&
initial_process
,
NULL
);
init_process
(
&
initial_process
);
if
(
!
alloc_console
(
&
initial_process
))
return
NULL
;
if
(
!
(
info
=
mem_alloc
(
sizeof
(
*
info
)
)))
return
NULL
;
info
->
start_flags
=
STARTF_USESTDHANDLES
;
info
->
hstdin
=
alloc_handle
(
&
initial_process
,
initial_process
.
console_in
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
1
);
info
->
hstdout
=
alloc_handle
(
&
initial_process
,
initial_process
.
console_out
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
1
);
info
->
hstderr
=
alloc_handle
(
&
initial_process
,
initial_process
.
console_out
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
1
);
initial_process
.
info
=
info
;
grab_object
(
&
initial_process
);
/* so that we never free it */
return
&
initial_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