correct handling of SIGHUP by interactive fish

This is a partial fix for issue #3737. It only addresses the SIGHUP
aspect of the problem. Fixing SIGTERM is TBD.
This commit is contained in:
Kurtis Rader
2017-01-24 15:15:38 -08:00
parent 319e65af05
commit a447a9aeff
8 changed files with 85 additions and 19 deletions

View File

@@ -195,7 +195,7 @@ bool shell_is_exiting();
void reader_handle_sigint();
/// This function returns true if fish is exiting by force, i.e. because stdin died.
int reader_exit_forced();
bool reader_exit_forced();
/// Test if the given shell command contains errors. Uses parser_test for testing. Suitable for
/// reader_set_test_function().