By dalke
Another is to pre-allocate enough reserve memory to be able to save and exit cleanly. When malloc fails, switch to the reserve memory and either shut down nicely, or post a dire warning to the user that the end is neigh and to “SAVE AND EXIT IMMEDIATELY”.
See more about this article by clicking the link here: https://news.ycombinator.com/item?id=10139444
dalke comments on "Show HN: Progressbar - A C library for displaying command-line progress bars"
No comments:
Post a Comment