diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-07-20 09:19:50 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-07-20 09:19:50 +0000 |
commit | da41e9a7a174334f3d9c232ad9b45e952018cee6 (patch) | |
tree | b7c5d9c397dc7fd9ced62748e4dc8885adc62a8e | |
parent | b9a35a5d9c2d30b64f7a3d9b528c14bdccd4b924 (diff) |
Additional message when crashing to report the issue.
-rw-r--r-- | src/httrack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/httrack.c b/src/httrack.c index 4afa216..a760300 100644 --- a/src/httrack.c +++ b/src/httrack.c @@ -910,6 +910,8 @@ static size_t print_num(char *buffer, int num) { static void sig_fatal(int code) { const char msg[] = "\nCaught signal "; + const char msgreport[] = + "\nPlease report the problem at http://forum.httrack.com\n"; char buffer[256]; size_t size; @@ -922,6 +924,8 @@ static void sig_fatal(int code) { buffer[size++] = '\n'; (void) (write(FD_ERR, buffer, size) == size); print_backtrace(); + (void) (write(FD_ERR, msgreport, sizeof(msgreport) - 1) + == sizeof(msgreport) - 1); abort(); } |