1
0
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:
Yann Collet
2017-10-01 12:10:26 -07:00
parent dc404119e5
commit 00fc1ba8dd
2 changed files with 37 additions and 0 deletions

View File

@ -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 */