aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/logging.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-12-04 15:19:00 +0100
committerGitHub <noreply@github.com>2020-12-04 15:19:00 +0100
commit1c1558df644a0955ed5fa57b56f5e463949a3e26 (patch)
treea60c5f7bf1975417fd8bca65e6844612e7bf43cb /src/utils/logging.rs
parentfix(compatibility): htop horizontal scrolling (#81) (diff)
downloadsl0ppij-1c1558df644a0955ed5fa57b56f5e463949a3e26.tar.gz
sl0ppij-1c1558df644a0955ed5fa57b56f5e463949a3e26.tar.xz
sl0ppij-1c1558df644a0955ed5fa57b56f5e463949a3e26.zip
fix(compatibility): do not offset first scroll region line (#82)
Diffstat (limited to '')
-rw-r--r--src/utils/logging.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/logging.rs b/src/utils/logging.rs
index fa302b09..84a2da8f 100644
--- a/src/utils/logging.rs
+++ b/src/utils/logging.rs
@@ -37,8 +37,8 @@ pub fn debug_log_to_file_without_newline(message: String) -> io::Result<()> {
file.write_all(message.as_bytes())
}
-pub fn debug_log_to_file_pid_0(message: String, pid: RawFd) -> io::Result<()> {
- if pid == 0 {
+pub fn debug_log_to_file_pid_3(message: String, pid: RawFd) -> io::Result<()> {
+ if pid == 3 {
debug_log_to_file(message)
} else {
Ok(())