diff options
author | Christopher Faylor <me@cgf.cx> | 2011-06-09 21:20:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-06-09 21:20:27 +0000 |
commit | b6510ccdcddaa82e379a3f3305902b5741c1eaa6 (patch) | |
tree | 46be139a1b49b001cda09c9e6b4816abb9cb9abd /winsup/cygwin/dcrt0.cc | |
parent | e254790b666ea95285d0338e252f30fdbc556196 (diff) | |
download | newlib-b6510ccdcddaa82e379a3f3305902b5741c1eaa6.zip newlib-b6510ccdcddaa82e379a3f3305902b5741c1eaa6.tar.gz newlib-b6510ccdcddaa82e379a3f3305902b5741c1eaa6.tar.bz2 |
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(child_info::old_title): Delete.
(child_info::~child_info_spawn): Remove recording of old_title.
* dcrt0.cc (title_buf): Delete.
(child_info_spawn::handle_spawn): Remove recording of old_title.
(dll_crt0_1): Get rid of all title handling.
(do_exit): Ditto.
* environ.cc (known): Delete strip_title and title.
* fhandler_console.cc (fhandler_console::write): Remove recording of old_title.
* globals.cc (exit_states): Remove ES_TITLE.
(display_title): Delete.
(strip_title_path): Delete.
(old_title): Delete.
* spawn.cc (spawn_guts): Remove old_title accommodation.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 16184a9..6ebc159 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -48,8 +48,6 @@ extern "C" void __sinit (_reent *); static int NO_COPY envc; static char NO_COPY **envp; -static char title_buf[TITLESIZE + 1]; - bool NO_COPY jit_debug; static void @@ -635,11 +633,6 @@ child_info_spawn::handle_spawn () child_proc_info->parent = NULL; signal_fixup_after_exec (); - if (moreinfo->old_title) - { - old_title = strcpy (title_buf, moreinfo->old_title); - cfree (moreinfo->old_title); - } fixup_lockf_after_exec (); } @@ -814,9 +807,6 @@ dll_crt0_1 (void *) #endif pinfo_init (envp, envc); - if (!old_title && GetConsoleTitle (title_buf, TITLESIZE)) - old_title = title_buf; - /* Allocate cygheap->fdtab */ dtable_init (); @@ -873,18 +863,6 @@ dll_crt0_1 (void *) *cp = '\0'; } - /* Set new console title if appropriate. */ - - if (display_title && !dynamically_loaded) - { - char *cp = __progname; - if (strip_title_path) - for (char *ptr = cp; *ptr && *ptr != ' '; ptr++) - if (isdirsep (*ptr)) - cp = ptr + 1; - set_console_title (cp); - } - (void) xdr_set_vprintf (&cygxdr_vwarnx); cygwin_finished_initializing = true; /* Call init of loaded dlls. */ @@ -1067,14 +1045,6 @@ do_exit (int status) } - if (exit_state < ES_TITLE) - { - exit_state = ES_TITLE; - /* restore console title */ - if (old_title && display_title) - set_console_title (old_title); - } - if (exit_state < ES_TTY_TERMINATE) { exit_state = ES_TTY_TERMINATE; |