Skip to content
Snippets Groups Projects
  • Yorhel's avatar
    bb7b4196
    Handle malloc failure by pausing any activity · bb7b4196
    Yorhel authored
    This is a best-effort approach to save ncdu state when memory is low.
    There's likely allocation in libraries that isn't being checked
    (ncurses, printf).
    
    Fixes #132 (it actually doesn't, that needs a 64bit static binary too,
    but I'll get to that)
    bb7b4196
    History
    Handle malloc failure by pausing any activity
    Yorhel authored
    This is a best-effort approach to save ncdu state when memory is low.
    There's likely allocation in libraries that isn't being checked
    (ncurses, printf).
    
    Fixes #132 (it actually doesn't, that needs a 64bit static binary too,
    but I'll get to that)