Alright, I was trying to make a simple function to constantly change its PID, but I get this:
error: ‘SIGKILL’ undeclared (first use in this function)
here is my code:
#include <stdio.h>
int changePID(void) {
int pid = fork();
printf(pid);
sleep(3);
kill(pid, SIGKILL);
}
int main(void) {
while (1) {
changePID();
}
}