mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-15 02:08:40 -09:00
Exit ncdu when losing input
Ought to fix https://dev.yorhel.nl/ncdu/bug/115
This commit is contained in:
parent
d15fe8d08e
commit
cbe24d6c8f
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ int input_handle(int wait) {
|
||||||
}
|
}
|
||||||
screen_draw();
|
screen_draw();
|
||||||
}
|
}
|
||||||
|
if(errno == EPIPE || errno == EBADF)
|
||||||
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue