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:
authorChristopher Faylor <me@cgf.cx>2003-12-26 07:40:52 +0300
committerChristopher Faylor <me@cgf.cx>2003-12-26 07:40:52 +0300
commit76832a5b32dd03a995e5c9c58b84da2ac5c6b26c (patch)
treeb42cabaa294528ec05fe1c0ebc6b1cbf5f4b478c /winsup/cygwin/fhandler_process.cc
parent1f32b7b382a5a7600874b5d582220984afd460b6 (diff)
* dcrt0.cc (reent_data): Reluctantly resurrect.
(__cygwin_user_data::impure_ptr): Ditto. (_dll_crt0): Reluctantly initialize _impure_ptr here. (initialize_main_tls): Eliminate local_clib initialization since it now happens in init_thread. * init.cc (dll_entry): Reluctantly remove code which set _impure_ptr to the main thread's local_clib. * perthread.h (reent_data): Remove obsolete declaration. * sigproc.cc (proc_subproc): Add more debugging output. (get_proc_lock): Ditto. *dcrt0.cc (dll_crt0_1): Allocate argv[0] via malloc since main thread could exit.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 28dc78ff5..a65bcf612 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -300,7 +300,10 @@ fhandler_process::fill_filebuf ()
filebuf = p->cmdline (fs);
filesize = fs;
if (!filebuf || !*filebuf)
- filebuf = strdup ("<defunct>");
+ {
+ filebuf = strdup ("<defunct>");
+ filesize = strlen (filebuf) + 1;
+ }
break;
}
case PROCESS_EXENAME: