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
1c40024b
Commit
1c40024b
authored
Mar 27, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cmd line in new_process request.
parent
4cf15118
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
server.h
include/server.h
+1
-0
process.c
scheduler/process.c
+2
-1
trace.c
server/trace.c
+3
-2
No files found.
include/server.h
View file @
1c40024b
...
...
@@ -49,6 +49,7 @@ struct new_process_request
int
hstdin
;
/* handle for stdin */
int
hstdout
;
/* handle for stdout */
int
hstderr
;
/* handle for stderr */
char
cmd_line
[
0
];
/* command line */
};
struct
new_process_reply
{
...
...
scheduler/process.c
View file @
1c40024b
...
...
@@ -421,7 +421,8 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env,
req
.
hstdout
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
req
.
hstderr
=
GetStdHandle
(
STD_ERROR_HANDLE
);
}
CLIENT_SendRequest
(
REQ_NEW_PROCESS
,
-
1
,
1
,
&
req
,
sizeof
(
req
)
);
CLIENT_SendRequest
(
REQ_NEW_PROCESS
,
-
1
,
2
,
&
req
,
sizeof
(
req
),
cmd_line
,
strlen
(
cmd_line
)
+
1
);
if
(
CLIENT_WaitSimpleReply
(
&
reply
,
sizeof
(
reply
),
NULL
))
goto
error
;
pdb
->
server_pid
=
reply
.
pid
;
info
->
hProcess
=
reply
.
handle
;
...
...
server/trace.c
View file @
1c40024b
...
...
@@ -13,8 +13,9 @@ static int dump_new_process_request( struct new_process_request *req, int len )
fprintf
(
stderr
,
" start_flags=%d,"
,
req
->
start_flags
);
fprintf
(
stderr
,
" hstdin=%d,"
,
req
->
hstdin
);
fprintf
(
stderr
,
" hstdout=%d,"
,
req
->
hstdout
);
fprintf
(
stderr
,
" hstderr=%d"
,
req
->
hstderr
);
return
(
int
)
sizeof
(
*
req
);
fprintf
(
stderr
,
" hstderr=%d,"
,
req
->
hstderr
);
fprintf
(
stderr
,
" cmd_line=
\"
%.*s
\"
"
,
len
-
(
int
)
sizeof
(
*
req
),
(
char
*
)(
req
+
1
)
);
return
len
;
}
static
int
dump_new_process_reply
(
struct
new_process_reply
*
req
,
int
len
)
...
...
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