// kompmgr allows us to change its uid in this manner:
// 2.) Send the new UID to it on the command line
// 1.) Send SIGUSER1
comp->kill(SIGUSR1);
// 2.) Send the new UID to it on the command line
comp->writeStdin(newuid.ascii(),newuid.length());
comp->kill(SIGUSR1);
usleep(50000);// Give the above function some time to execute. Note that on REALLY slow systems this could fail, leaving kompmgr running as root. TODO: Look into ways to make this more robust.
comp->writeStdin(newuid.ascii(),newuid.length());
usleep(50000);// Give the above function some time to execute. Note that on REALLY slow systems this could fail, leaving kompmgr running as root. TODO: Look into ways to make this more robust.