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:
parent
cb838481d8
commit
24528cedaf
|
@ -29,9 +29,9 @@ RETSIGTYPE zm_hup_handler( int signal )
|
||||||
{
|
{
|
||||||
#if HAVE_DECL_STRSIGNAL
|
#if HAVE_DECL_STRSIGNAL
|
||||||
char * error = strsignal(signal);
|
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.
|
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 ));
|
Info(( (const char *)errorString ));
|
||||||
free(errorString);
|
free(errorString);
|
||||||
|
|
Loading…
Reference in New Issue