BRU normally catches both interrupt (SIGINT)
and quit (SIGQUIT)
signals. The keys that generate these signals are system dependent and can be discovered with the UNIX stty
command (stty -a
for example). When BRU receives an interrupt (SIGINT)
signal during archive creation or extraction, it completes its work on the current file before cleaning up and exiting. By contrast, when BRU receives a SIGQUIT
signal during archive creation or extraction, it terminates the program immediately. If an archive is being created, it will be truncated at the point at which SIGQUIT
is received. If a file is being extracted from an archive, the file will not be restored properly. An interrupt always leaves an archive in a consistent state for future reads. It is therefore the recommended method for stopping BRU.