M
Miguel
What signal have I to take into account in order to capture the 'kill -9
[PID]' call from command shell?
the code is something like this
void manager(int i){
printf("%d\n",i);
system("chmod 644 prueba.mig");
exit(0);
}
int main(){
int fd;
signal(SIGINT,manager);
signal(SIGKILL,manager);
fd = create("prueba.mig");
while(1==1){}
}
thank you in advance.
Miguel
[PID]' call from command shell?
the code is something like this
void manager(int i){
printf("%d\n",i);
system("chmod 644 prueba.mig");
exit(0);
}
int main(){
int fd;
signal(SIGINT,manager);
signal(SIGKILL,manager);
fd = create("prueba.mig");
while(1==1){}
}
thank you in advance.
Miguel