]> granicus.if.org Git - procps-ng/commit
top: with lib xalloc changes, restored prior memory logic
authorJim Warner <james.warner@comcast.net>
Tue, 20 Dec 2011 14:23:37 +0000 (08:23 -0600)
committerCraig Small <csmall@enc.com.au>
Thu, 22 Dec 2011 12:48:03 +0000 (23:48 +1100)
commit05f5deb97c454b3558892ff4266efc81547f88d5
tree3aec084e6c962638f4612ef192c20b2dff9f2a17
parenta10282422b9386a2192c1603bad82b81dfcb46e7
top: with lib xalloc changes, restored prior memory logic

With the privatization of the library xalloc functions,
this patch restores top's previous internal memory logic.

This puts us back on a 3.3.1 (and earlier) footing wherein
memory allocation errors carry these implications:
  . if top detected, the terminal will be restored
    prior to an abnormal exit and message
  . if library detected, the terminal will become
    corrupted following the message

To my knowledge, neither type of memory error has ever occurred
during the nine years since top was rewritten.  So the issue of
restoring the termios structure is probably moot.
top.c
top.h