Fixed incorrect indication on HUP signal.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1991 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2006-05-24 13:51:23 +00:00
parent cb838481d8
commit 24528cedaf
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ RETSIGTYPE zm_hup_handler( int signal )
{
#if HAVE_DECL_STRSIGNAL
char * error = strsignal(signal);
size_t errorStringSize = strlen(error) + strlen("Got signal (), exiting.");
size_t errorStringSize = strlen(error) + strlen("Got signal (), reloading.");
char * errorString =(char *) malloc(errorStringSize + 1); // plus 1 for termination char.
(void) snprintf(errorString, errorStringSize, "Got signal (%s), exiting.", error);
(void) snprintf(errorString, errorStringSize, "Got signal (%s), reloading.", error);
Info(( (const char *)errorString ));
free(errorString);