Merge pull request #251 from sgtcortez/main

Fix wrong extern declaration of pidsToWatch
This commit is contained in:
Arnout Engelen
2023-03-22 14:22:39 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
static std::pair<int, int> self_pipe = std::make_pair(-1, -1);
static time_t last_refresh_time = 0;
std::set<pid_t> pidsToWatch;
extern std::set<pid_t> pidsToWatch;
// selectable file descriptors for the main loop
static fd_set pc_loop_fd_set;

View File

@@ -68,7 +68,7 @@ Process *unknownudp;
Process *unknownip;
ProcList *processes;
extern std::set<pid_t> pidsToWatch;
std::set<pid_t> pidsToWatch;
#define KB (1UL << 10)
#define MB (1UL << 20)