forked from Makrennel/hyprland-void
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/src/debug/Log.cpp.old b/src/debug/Log.cpp | ||
index a4c5b08e60b..0def77c003e 100644 | ||
--- a/src/debug/Log.cpp.old | ||
+++ b/src/debug/Log.cpp | ||
@@ -6,11 +6,8 @@ | ||
#include <fstream> | ||
#include <iostream> | ||
-#include <fcntl.h> | ||
|
||
void Debug::init(const std::string& IS) { | ||
logFile = IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log"); | ||
logOfs.open(logFile, std::ios::out | std::ios::app); | ||
- auto handle = logOfs.native_handle(); | ||
- fcntl(handle, F_SETFD, FD_CLOEXEC); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters