Hashmap *workers;
LIST_HEAD(Event, events);
char *cgroup;
- pid_t pid; /* the process that originally allocated the manager object */
int log_level;
UdevRules *rules;
assert(manager);
assert(dev);
- /* only one process can add events to the queue */
- assert(manager->pid == getpid_cached());
-
/* We only accepts devices received by device monitor. */
r = sd_device_get_seqnum(dev, &seqnum);
if (r < 0)
static int main_loop(Manager *manager) {
int fd_worker, r;
- manager->pid = getpid_cached();
-
/* unnamed socket from workers to the main daemon */
r = socketpair(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0, manager->worker_watch);
if (r < 0)