Fix EINTR handling when importing history from bash

This commit is contained in:
Johannes Altmanninger 2024-10-09 12:30:21 +02:00
parent ffedcdaac3
commit 29a01eb3cf

View file

@ -1123,9 +1123,8 @@ impl HistoryImpl {
break;
}
if dst_file.write(&buf[..n]).is_err() {
// This message does not have high enough priority to be shown by default.
FLOG!(history_file, "Error when writing history file");
if let Err(err) = dst_file.write_all(&buf[..n]) {
FLOG!(history_file, "Error when writing history file:", err);
break;
}
}