mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Fix EINTR handling when importing history from bash
This commit is contained in:
parent
ffedcdaac3
commit
29a01eb3cf
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue