mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 20:44:35 +03:00
Settings: check if writing configuration file was successful
Writing to the file stream might fail due to a immutable file or a filesystem error. Check the error indicator for the stream and for fclose() failures.
This commit is contained in:
@ -87,7 +87,7 @@ static inline int Settings_getActiveDirection(const Settings* this) {
|
||||
|
||||
void Settings_delete(Settings* this);
|
||||
|
||||
bool Settings_write(const Settings* this);
|
||||
int Settings_write(const Settings* this);
|
||||
|
||||
Settings* Settings_new(int initialCpuCount);
|
||||
|
||||
|
Reference in New Issue
Block a user