Commit Graph

30 Commits

Author SHA1 Message Date
Isaac Connor e5097d9466 code style 2020-10-30 11:50:16 -04:00
Peter Keresztes Schmidt 8f980a1168 Convert NULL/0 to nullptr
The 0 -> nullptr changes should definitely improve readability.
2020-08-26 22:03:40 +02:00
Isaac Connor 70388753ea COmment out logging in signal handlers. Logging is too complex. 2018-12-14 08:40:32 -05:00
abishai 950c8f19d3 Upstream FreeBSD patches (#1926)
* apply FreeBSD patches

* timeval struct needs time.h

* typo

* added forgotten destination for systemd startup script install
2017-06-22 10:14:24 -04:00
Andy Bauer 254fcbcef7 update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
Isaac Connor 69d5065ebf move ip down as well 2016-04-26 16:05:37 -04:00
Isaac Connor 5d88acb8a6 re-arrange a few lines to remove some duplicate ifdef's. And move the cr2 def into the area that uses it to remove build warnings on freebsd 2016-04-26 16:03:26 -04:00
Isaac Connor ea795c4040 Fix to compile on 32bit kFreeBSD 2015-04-24 13:55:10 -04:00
Isaac Connor 209f23cc6e Fix build issues on kFreeBSD. Fixes #771 2015-04-20 12:53:02 -04:00
Peter Howard 9a31bbb4d0 zm_signal.cpp needed extra compile guards too. Confirmed building on non-x86 (ia64 for convenience) 2014-01-23 16:09:42 +11:00
Kfir Itzhak 25297bde73 Push the debugging in zm_signal further down 2013-10-07 11:27:53 +03:00
Kfir Itzhak 2cb65c6430 Always print cr2 and ip as long if siginfo and ucontext are available 2013-10-07 11:07:41 +03:00
Kfir Itzhak 1d7f664627 1) Removed the use of deprecated and undocumented sigcontext (Replaced by siginfo and ucontext)
2) Removed the checks for sigcontext, strsignal and siginfo.h
3) Added debugging code to the die handler
4) Using SA_RESTART in the hup and reload handlers to prevent certain functions returning EINTR
5) Added SIGINT and SIGQUIT to the term handler
2013-10-07 10:37:58 +03:00
Kfir Itzhak e4b1be73ef Used indent -linux on src/zm_signal.cpp to convert all spaces to tabs 2013-10-07 02:57:01 +03:00
Kfir Itzhak 0bb2ee7efc More signal improvements:
1) Cleaner code
2) Fixed the path displayed in the addr2line line
3) Improved dependency checking for backtrace
4) Few more improvements
2013-10-07 02:37:50 +03:00
Kfir Itzhak b5c536b134 Signal and backtrace improvements 2013-10-06 18:26:33 +03:00
mastertheknife ac7f7f08a7 Fix some compilation warnings 2013-09-24 07:31:02 +03:00
stan 6ff385e407 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3459 e3e1d417-86f3-4887-817a-d78f3d33393f 2011-06-21 09:19:10 +00:00
stan a786dfeb66 Debug tidying and renaming.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2976 e3e1d417-86f3-4887-817a-d78f3d33393f
2009-10-14 13:10:14 +00:00
stan 2c43bde47c Corrected some format specifiers to account for different size of size_t types on 64 bit systems
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2942 e3e1d417-86f3-4887-817a-d78f3d33393f
2009-07-01 12:28:40 +00:00
stan 092f8cdbff Made backtracing more helpful.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2769 e3e1d417-86f3-4887-817a-d78f3d33393f
2009-02-17 12:27:03 +00:00
stan 435c469d4b Added DUMP_CORES option.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2639 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-09-29 11:43:43 +00:00
stan d15e05e016 Cosmetic cr/lfs on debug,
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2634 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-09-29 08:15:50 +00:00
stan e6041e24a7 Uppdated copyright headers
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2611 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-25 09:33:23 +00:00
stan fc8886b305 Changed method of detecting strsignal
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2592 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-22 19:54:01 +00:00
stan ee44d4b274 Updated debug format
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2513 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-14 14:43:47 +00:00
stan 799ee78675 Bug 471 - Compiler warnings, sorted out types and general format tidying
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2357 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-03-13 13:36:12 +00:00
stan 24528cedaf Fixed incorrect indication on HUP signal.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1991 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-05-24 13:51:23 +00:00
stan fbc4c6e088 Bug 315 - Handle sigcontext structures without eip.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1959 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-05-05 11:23:26 +00:00
stan e22e410320 Bug 308 - Added handlers for fatal signals, with backtracing facility.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1914 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-04-05 12:20:46 +00:00