[so] angelize() and sys_angelize() as system proceses

Alexandru Goia goia.i.alexandru at gmail.com
Fri Mar 12 04:21:47 EET 2021


Salut !

In spiritul articolului de mai jos, pe care ti-l indic sa il rasfoiesti,

http://cursuri.cs.pub.ro/pipermail/so/2018-November/018670.html

iti propun continuarea : daca am avea si angelize pid, pe un pid ce ne
apartine ?

Aplicatii : tree-ul de procese Apache. Analog daemon/daemonize.

Deci, cum am facut-o ?

Urmand
http://tejom.github.io/linux/programing/2016/08/06/adding-a-syscall.html

Implementarea nu e deloc dificila, totul fiind un pic mai greu la

asmlinkage long sys_angelize(pid_t pid) ;

SYSCALL_DEFINE1(angelize, pid_t, pid) P
find_task_by_vpid(pid)->unix_deadly_signals = 1;
return 0;
}


Amin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20210312/96eb5b95/attachment.html>


More information about the so mailing list