diff options
| author | SASANO Takayoshi <uaa@uaa.org.uk> | 2025-11-25 05:11:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-24 20:11:15 +0000 |
| commit | 3d7ea9c02face0d6c5d9963030a06705268979ba (patch) | |
| tree | c12c1693c78c5701e3355a0cf9b55ba363b6b7d1 /src/debug | |
| parent | 2b0fd417d32278159d0ca1d23fb997588c37995b (diff) | |
CrashReporter.cpp: fix stderr conflict (#12440)
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/CrashReporter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index 17c4ebf7..9e871903 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -76,15 +76,15 @@ void NCrashReporter::createAndSaveCrash(int sig) { reportPath += ".txt"; { - CBufFileWriter<64> stderr(2); - stderr += "Hyprland has crashed :( Consult the crash report at "; + CBufFileWriter<64> stderr_out(STDERR_FILENO); + stderr_out += "Hyprland has crashed :( Consult the crash report at "; if (!reportPath.boundsExceeded()) { - stderr += reportPath.getStr(); + stderr_out += reportPath.getStr(); } else { - stderr += "[ERROR: Crash report path does not fit into memory! Check if your $CACHE_HOME/$HOME is too deeply nested. Max 255 characters.]"; + stderr_out += "[ERROR: Crash report path does not fit into memory! Check if your $CACHE_HOME/$HOME is too deeply nested. Max 255 characters.]"; } - stderr += " for more information.\n"; - stderr.flush(); + stderr_out += " for more information.\n"; + stderr_out.flush(); } reportFd = open(reportPath.getStr(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); |
