I'm new with C++. My problem is that I have a process which creates a lot of processes, I want to identify(get the pid) of one of the children. Looping through children would take a lot of resources(don't ask why). SO I'm trying to get the pid of process by (somehow) identifying if it uses
a = sd_notify(0, "READY=1");
printf("%d -> \n", a);
undefined reference to 'sd_notify'
libsystemd-daemon-devel and then compile using
g++ -o sig sig.cpp -lsystemd-daemon