diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-26 04:40:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-26 04:40:52 +0000 |
commit | 76832a5b32dd03a995e5c9c58b84da2ac5c6b26c (patch) | |
tree | b42cabaa294528ec05fe1c0ebc6b1cbf5f4b478c /winsup/cygwin/fhandler_process.cc | |
parent | 1f32b7b382a5a7600874b5d582220984afd460b6 (diff) | |
download | cygnal-76832a5b32dd03a995e5c9c58b84da2ac5c6b26c.tar.gz cygnal-76832a5b32dd03a995e5c9c58b84da2ac5c6b26c.tar.bz2 cygnal-76832a5b32dd03a995e5c9c58b84da2ac5c6b26c.zip |
* 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.cc | 5 |
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: |