summaryrefslogtreecommitdiff
path: root/src/signal-safe.cpp
Commit message (Collapse)AuthorAgeFilesLines
* crashReporter: cleanup code (#12534)Vaxry2025-12-031-32/+0
| | | | various code cleanups, reorders, move off of global NS
* core: Unbreak build on FreeBSD (#8762)Jan Beich2024-12-181-0/+4
| | | | | | | | | | | | | | | * CrashReporter: restore explicit environ(7) after 8bbeee11734d BSD systems don't declare environ(7) in any header like POSIX suggests. src/signal-safe.cpp:12:23: error: use of undeclared identifier 'environ' 12 | for (char** var = environ; *var != nullptr; var++) { | ^ * fix --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* core: Add clang-tidy (#8664)Vaxry2024-12-071-8/+6
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
* CrashReporter: fix deadlocks by making it mostly async-signal-safe (#5771)virchau132024-04-271-0/+30
`CrashReporter::createAndSaveCrash()` is not async-signal-safe, resulting in random deadlocks/double-crashes during Hyprland crashes. This changes the function to be (mostly) async-signal-safe.