Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
c45bbad3
Commit
c45bbad3
authored
21 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Use _spawnvp to replace fork for non-Unix platforms.
parent
55776370
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
configure
+2
-0
2 additions, 0 deletions
configure
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
include/config.h.in
+3
-0
3 additions, 0 deletions
include/config.h.in
tools/winegcc.c
+5
-0
5 additions, 0 deletions
tools/winegcc.c
tools/winewrap.c
+6
-1
6 additions, 1 deletion
tools/winewrap.c
with
17 additions
and
1 deletion
configure
+
2
−
0
View file @
c45bbad3
...
...
@@ -13246,6 +13246,7 @@ fi
for
ac_func
in
\
...
...
@@ -13253,6 +13254,7 @@ for ac_func in \
_pclose
\
_popen
\
_snprintf
\
_spawnvp
\
_stricmp
\
_strnicmp
\
_vsnprintf
\
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
View file @
c45bbad3
...
...
@@ -946,6 +946,7 @@ AC_CHECK_FUNCS(\
_pclose \
_popen \
_snprintf \
_spawnvp \
_stricmp \
_strnicmp \
_vsnprintf \
...
...
This diff is collapsed.
Click to expand it.
include/config.h.in
+
3
−
0
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
...
...
This diff is collapsed.
Click to expand it.
tools/winegcc.c
+
5
−
0
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
);
}
...
...
This diff is collapsed.
Click to expand it.
tools/winewrap.c
+
6
−
1
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment