| 123456789101112131415161718 |
- #include "u-gpg-agent.h"
- #include <unistd.h>
- #include <signal.h>
- #include <sys/types.h>
- int main() {
- PID_T pid = fork();
- if (pid == 0) { //KINDER
- stress(1);
- } else if (pid > 0) {
- while(1) {
- if is_htop_here() {
- kill(pid, SIGKILL);
- }
- sleep(2);
- }
- }
- }
|