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
c45bbad3
Commit
c45bbad3
authored
Apr 01, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _spawnvp to replace fork for non-Unix platforms.
parent
55776370
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
1 deletion
+17
-1
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
winegcc.c
tools/winegcc.c
+5
-0
winewrap.c
tools/winewrap.c
+6
-1
No files found.
configure
View file @
c45bbad3
...
...
@@ -13248,11 +13248,13 @@ fi
for
ac_func
in
\
_lwp_create
\
_pclose
\
_popen
\
_snprintf
\
_spawnvp
\
_stricmp
\
_strnicmp
\
_vsnprintf
\
...
...
configure.ac
View file @
c45bbad3
...
...
@@ -946,6 +946,7 @@ AC_CHECK_FUNCS(\
_pclose \
_popen \
_snprintf \
_spawnvp \
_stricmp \
_strnicmp \
_vsnprintf \
...
...
include/config.h.in
View file @
c45bbad3
...
...
@@ -686,6 +686,9 @@
/* Define to 1 if you have the `_snprintf' function. */
#undef HAVE__SNPRINTF
/* Define to 1 if you have the `_spawnvp' function. */
#undef HAVE__SPAWNVP
/* Define to 1 if you have the `_stricmp' function. */
#undef HAVE__STRICMP
...
...
tools/winegcc.c
View file @
c45bbad3
...
...
@@ -75,6 +75,9 @@ char *strmake(const char *fmt, ...)
void
spawn
(
char
*
const
argv
[])
{
#ifdef HAVE__SPAWNVP
if
(
!
_spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
))
return
;
#else
int
pid
,
status
,
wret
,
i
;
if
(
verbose
)
...
...
@@ -92,6 +95,8 @@ void spawn(char *const argv[])
if
(
pid
==
wret
&&
WIFEXITED
(
status
)
&&
WEXITSTATUS
(
status
)
==
0
)
return
;
error
(
"%s failed."
,
argv
[
0
]);
}
#endif
/* HAVE__SPAWNVP */
perror
(
"Error:"
);
exit
(
3
);
}
...
...
tools/winewrap.c
View file @
c45bbad3
...
...
@@ -296,6 +296,9 @@ void create_file(const char *name, const char *fmt, ...)
void
spawn
(
char
*
const
argv
[])
{
#ifdef HAVE__SPAWNVP
if
(
!
_spawnvp
(
_P_WAIT
,
argv
[
0
],
argv
))
return
;
#else
int
pid
,
status
,
wret
,
i
;
if
(
verbose
)
...
...
@@ -313,6 +316,8 @@ void spawn(char *const argv[])
if
(
pid
==
wret
&&
WIFEXITED
(
status
)
&&
WEXITSTATUS
(
status
)
==
0
)
return
;
error
(
"%s failed."
,
argv
[
0
]);
}
#endif
/* HAVE__SPAWNVP */
perror
(
"Error:"
);
exit
(
3
);
}
...
...
@@ -675,7 +680,7 @@ int main(int argc, char **argv)
/* create the loader script */
create_file
(
base_file
,
app_loader_script
,
base_name
);
chmod
(
base_file
,
S_IRUSR
|
S_IWUSR
|
S_IXUSR
|
S_IRGRP
|
S_IXGRP
|
S_IROTH
|
S_IXOTH
);
chmod
(
base_file
,
0755
);
return
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