Use both package name and process name as key

Different packages could potentially use the same process name,
and they shouldn't conflict with each other.
This commit is contained in:
topjohnwu
2019-03-06 05:40:52 -05:00
parent 04ef1e6405
commit 4e53ebfe44
4 changed files with 79 additions and 66 deletions

View File

@@ -8,6 +8,7 @@
#include <string>
#include <functional>
#include <map>
#include <set>
#include "daemon.h"
@@ -54,7 +55,7 @@ static inline int parse_int(const char *s) {
extern bool hide_enabled;
extern pthread_mutex_t monitor_lock;
extern std::map<std::string, std::string> hide_map;
extern std::set<std::pair<std::string, std::string>> hide_set;
extern int next_zygote;
enum {