mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
cli: add Ctrl-C support, requested by @mike155 in #854
Now, pressing Ctrl-C during compression or decompression will erase operation artefact (unfinished destination file) before leaving execution.
This commit is contained in:
@ -406,6 +406,7 @@ int main(int argCount, const char* argv[])
|
||||
int cover = 1;
|
||||
#endif
|
||||
|
||||
|
||||
/* init */
|
||||
(void)recursive; (void)cLevelLast; /* not used when ZSTD_NOBENCH set */
|
||||
(void)dictCLevel; (void)dictSelect; (void)dictID; (void)maxDictSize; /* not used when ZSTD_NODICT set */
|
||||
|
Reference in New Issue
Block a user