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
be32b341
Commit
be32b341
authored
Nov 19, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Work around Mac OS execve() breakage.
parent
0f5fc117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spawn.c
libs/port/spawn.c
+5
-1
No files found.
libs/port/spawn.c
View file @
be32b341
...
...
@@ -23,6 +23,7 @@
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
...
...
@@ -41,7 +42,8 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
if
(
mode
==
_P_OVERLAY
)
{
execvp
(
cmdname
,
(
char
**
)
argv
);
return
-
1
;
/* if we get here it failed */
/* if we get here it failed */
if
(
errno
!=
ENOTSUP
)
return
-
1
;
/* exec fails on MacOS if the process has multiple threads */
}
dfl_act
.
sa_handler
=
SIG_DFL
;
...
...
@@ -58,6 +60,8 @@ int spawnvp(int mode, const char *cmdname, const char *const argv[])
_exit
(
1
);
}
if
(
pid
!=
-
1
&&
mode
==
_P_OVERLAY
)
exit
(
0
);
if
(
pid
!=
-
1
&&
mode
==
_P_WAIT
)
{
while
(
pid
!=
(
wret
=
waitpid
(
pid
,
&
status
,
0
)))
...
...
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