diff options
author | Christopher Faylor <me@cgf.cx> | 2007-11-26 21:30:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2007-11-26 21:30:49 +0000 |
commit | ee4388c4200ed46ebeb8509f6dd204a6476017dc (patch) | |
tree | 55fd4f1c7f8e169eb4aad0c646333be0cc2a1da3 /winsup/cygwin/fhandler_tty.cc | |
parent | 32cba6cb3a8366df854ba24ece2a60f1b2f872a3 (diff) | |
download | cygnal-ee4388c4200ed46ebeb8509f6dd204a6476017dc.tar.gz cygnal-ee4388c4200ed46ebeb8509f6dd204a6476017dc.tar.bz2 cygnal-ee4388c4200ed46ebeb8509f6dd204a6476017dc.zip |
Change many cygheap allocation routines to their *_abort analogs.
* cygheap.cc (cmalloc_abort): New function.
(crealloc_abort): Ditto.
(ccalloc_abort): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 6a58ab0af..e86531ef0 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -601,7 +601,7 @@ fhandler_tty_slave::open (int flags, mode_t) fhandler_console::need_invisible (); // FIXME: Do this better someday - arch = (fhandler_tty_slave *) cmalloc (HEAP_ARCHETYPES, sizeof (*this)); + arch = (fhandler_tty_slave *) cmalloc_abort (HEAP_ARCHETYPES, sizeof (*this)); *((fhandler_tty_slave **) cygheap->fdtab.add_archetype ()) = arch; archetype = arch; *arch = *this; @@ -1127,7 +1127,7 @@ fhandler_pty_master::open (int flags, mode_t) set_open_status (); // // FIXME: Do this better someday - fhandler_pty_master *arch = (fhandler_tty_master *) cmalloc (HEAP_ARCHETYPES, sizeof (*this)); + fhandler_pty_master *arch = (fhandler_tty_master *) cmalloc_abort (HEAP_ARCHETYPES, sizeof (*this)); *((fhandler_pty_master **) cygheap->fdtab.add_archetype ()) = arch; archetype = arch; *arch = *this; |