Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 02afbf3e3..b22e8c774 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -351,7 +351,6 @@ spawn_guts (const char * prog_arg, const char *const *argv,
{
BOOL rc;
pid_t cygpid;
- sigframe thisframe (mainthread);
MALLOC_CHECK;
@@ -987,9 +986,11 @@ spawnve (int mode, const char *path, const char *const *argv,
ret = spawn_guts (path, argv, envp, mode);
if (vf)
{
- debug_printf ("longjmping due to vfork");
if (ret > 0)
- vf->restore_pid (ret);
+ {
+ debug_printf ("longjmping due to vfork");
+ vf->restore_pid (ret);
+ }
}
break;
default: