-
- Downloads
Handle malloc failure by pausing any activity
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)
Showing
- src/dir_common.c 3 additions, 3 deletionssrc/dir_common.c
- src/dir_import.c 2 additions, 2 deletionssrc/dir_import.c
- src/dir_mem.c 1 addition, 1 deletionsrc/dir_mem.c
- src/dir_scan.c 3 additions, 3 deletionssrc/dir_scan.c
- src/dirlist.c 1 addition, 1 deletionsrc/dirlist.c
- src/exclude.c 4 additions, 4 deletionssrc/exclude.c
- src/global.h 3 additions, 0 deletionssrc/global.h
- src/main.c 10 additions, 5 deletionssrc/main.c
- src/path.c 12 additions, 12 deletionssrc/path.c
- src/path.h 0 additions, 1 deletionsrc/path.h
- src/util.c 22 additions, 3 deletionssrc/util.c
- src/util.h 7 additions, 2 deletionssrc/util.h
Loading
Please register or sign in to comment