aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvilib/system/KviSignalHandler.cpp
Commit message (Expand)AuthorAgeFilesLines
* Add support for sanitizers at compile time (and fix some issues) (#2599)•••* Add an option to enable sanitizer at compile time * Fix singleton classes initialization * Revert r5378 - issue #1068 - to avoid having duplicate symbols exported by modules, that may cause a crash * Fix cast in KviTalIconAndRichTextItemDelegate (used by both QListWidget and QTreeWidget) * ScriptEditor: don't leak a timer for every script editor widget * Add support for memory and thread sanitizers * Fix sanitizer * KviSignalhandler: don't leak the whole object * Remove debug warning when a single message is longer than 512 bytes. As per https://ircv3.net/specs/extensions/message-tags.html#size-limit , message tags can prepend a whooping 8kbs of "tags" (header data) to each message. * Avoid initialization loop between KviLocale and KviMessageCatalogue. Assume all .po files are UTF8. This is already a requirement since about a decade. * KviInputEditor: don't leak the undo/redo stacks KviInputEditor: don't leak the undo/redo stacks - rework using smart pointers * Fix typoGravatar ctrlaltca2024-02-081-1/+1
* Apply all modernize-* fixes from clang-tidy except for modernize-use-autoGravatar Alexey Sokolov2018-11-141-4/+2
* Fix uninitialized variable accessGravatar Szymon Tomasz Stefanek2017-12-281-0/+1
* KviSignalHandler: Be explicit when ignoring return values of certain functionsGravatar IceN9ne2017-02-031-2/+2
* Cleanup included filesGravatar IceN9ne2016-10-281-0/+1
* Shut down cleanly on SIGTERM and SIGINT•••SIGTERM is the standard way on POSIX for the OS to tell an application to close. It can be sent when the computer is shutting down or the user is logging off, as well as by the user, directly, or indirectly (e.g. by using a task manager). SIGINT is sent when the user presses Ctrl+C in a terminal window in which the program is running. In both of these cases, KVIrc should shut down cleanly, as if the user closed the main window. This implies flushing logs. By implementing SIGTERM and SIGINT handling on POSIX, this patch fixes the log files not being flushed on receiving such a signal, thus causing the last few lines to be lost. Gravatar Vladimir Panteleev2016-07-281-0/+109