Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d7c4e4dd
Commit
d7c4e4dd
authored
Nov 06, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return success in CreateProcess when we started a non-Winelib Unix
process.
parent
8871a11b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
process.c
scheduler/process.c
+9
-11
No files found.
scheduler/process.c
View file @
d7c4e4dd
...
...
@@ -799,7 +799,6 @@ BOOL PROCESS_Create( HANDLE hFile, LPCSTR filename, LPSTR cmd_line, LPCSTR env,
LPPROCESS_INFORMATION
info
,
LPCSTR
lpCurrentDirectory
)
{
BOOL
ret
;
int
pid
;
const
char
*
unixfilename
=
NULL
;
const
char
*
unixdir
=
NULL
;
DOS_FULL_NAME
full_dir
,
full_name
;
...
...
@@ -807,6 +806,7 @@ BOOL PROCESS_Create( HANDLE hFile, LPCSTR filename, LPSTR cmd_line, LPCSTR env,
HANDLE
process_info
;
info
->
hThread
=
info
->
hProcess
=
0
;
info
->
dwProcessId
=
info
->
dwThreadId
=
0
;
if
(
lpCurrentDirectory
)
{
...
...
@@ -865,12 +865,16 @@ BOOL PROCESS_Create( HANDLE hFile, LPCSTR filename, LPSTR cmd_line, LPCSTR env,
/* fork and execute */
pid
=
fork_and_exec
(
unixfilename
,
cmd_line
,
env
,
unixdir
);
if
(
fork_and_exec
(
unixfilename
,
cmd_line
,
env
,
unixdir
)
==
-
1
)
{
CloseHandle
(
process_info
);
return
FALSE
;
}
/* wait for the new process info to be ready */
ret
=
FALSE
;
if
(
(
pid
!=
-
1
)
&&
(
WaitForSingleObject
(
process_info
,
2000
)
==
STATUS_WAIT_0
)
)
ret
=
TRUE
;
/* pretend success even if we don't get the new process info */
if
(
WaitForSingleObject
(
process_info
,
2000
)
==
STATUS_WAIT_0
)
{
SERVER_START_REQ
(
get_new_process_info
)
{
...
...
@@ -889,7 +893,7 @@ BOOL PROCESS_Create( HANDLE hFile, LPCSTR filename, LPSTR cmd_line, LPCSTR env,
SERVER_END_REQ
;
}
CloseHandle
(
process_info
);
if
(
!
ret
)
goto
error
;
if
(
!
ret
)
return
FALSE
;
/* Wait until process is initialized (or initialization failed) */
if
(
load_done_evt
)
...
...
@@ -911,12 +915,6 @@ BOOL PROCESS_Create( HANDLE hFile, LPCSTR filename, LPSTR cmd_line, LPCSTR env,
}
}
return
TRUE
;
error:
if
(
load_done_evt
)
CloseHandle
(
load_done_evt
);
if
(
info
->
hThread
)
CloseHandle
(
info
->
hThread
);
if
(
info
->
hProcess
)
CloseHandle
(
info
->
hProcess
);
return
FALSE
;
}
...
...
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