From c55a10bf2665cf713a297c698a34e6d5979feb3c Mon Sep 17 00:00:00 2001 From: Matheus Rambo Date: Mon, 20 Mar 2023 13:31:38 -0300 Subject: [PATCH] fix: Wrong definition of "pidsToWatch" #230 --- src/main.cpp | 2 +- src/process.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index da10cca..b5dfdec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ static std::pair self_pipe = std::make_pair(-1, -1); static time_t last_refresh_time = 0; -std::set pidsToWatch; +extern std::set pidsToWatch; // selectable file descriptors for the main loop static fd_set pc_loop_fd_set; diff --git a/src/process.cpp b/src/process.cpp index 6c6dd30..724aec9 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -68,7 +68,7 @@ Process *unknownudp; Process *unknownip; ProcList *processes; -extern std::set pidsToWatch; +std::set pidsToWatch; #define KB (1UL << 10) #define MB (1UL << 20)