summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-09 03:11:31 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-09 03:11:31 +0000
commit3ef50005c759d5dbdb5a7b31730bf836a6519ab0 (patch)
tree98ecbe813337b26be5f350ef585952df14df6455 /winsup/cygwin/dcrt0.cc
parent51d340e1c801b82e5e8b58b48639d46681d33f4c (diff)
downloadcygnal-3ef50005c759d5dbdb5a7b31730bf836a6519ab0.tar.gz
cygnal-3ef50005c759d5dbdb5a7b31730bf836a6519ab0.tar.bz2
cygnal-3ef50005c759d5dbdb5a7b31730bf836a6519ab0.zip
* dcrt0.cc (dlL_crt0_1): Set __argc_safe after __argc is absolutely know to be
set. * exceptions.cc (sig_handle_tty_stop): Don't reset sigCONT event since it is reset automatically. * fork.cc (fork): Remove obsolete usage of PID_SPLIT_HEAP. * include/sys/cygwin.h: Ditto. * sigproc.cc (sig_send): Use sigframe init method to set frame since it checks for previous ownership of the frame. * sigproc.h (sigframe::init): Accept an "is_exception" argument.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 635759bb8..d8141dd06 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -607,7 +607,7 @@ dll_crt0_1 ()
DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE))
h = NULL;
set_myself (mypid, h);
- __argc = __argc_safe = spawn_info->moreinfo->argc;
+ __argc = spawn_info->moreinfo->argc;
__argv = spawn_info->moreinfo->argv;
envp = spawn_info->moreinfo->envp;
envc = spawn_info->moreinfo->envc;
@@ -724,6 +724,7 @@ dll_crt0_1 ()
}
}
+ __argc_safe = __argc;
if (user_data->premain[0])
for (unsigned int i = 0; i < PREMAIN_LEN / 2; i++)
user_data->premain[i] (__argc, __argv, user_data);