On Wed, Jan 06, 2021 at 07:08:14PM +0300, Vasily Postnicov wrote:
> That's what I found.
>
> At first, ping calls cap_init() in capdns_setup(). cap_init() forks a
> process, then the parent returns and the child calls casper_main_loop().
> The child and the parent both have a socket to communicate
I have noticed that after I kill stuck ping, the process spawned with
cap_init() remains. I cannot even kill it with SIGKILL. This is the
output of procstat on such a process.
vasily 969 0.0 0.1 26428 6532 v0 I22:430:00.00 ping
vonbraun.local
vasily 983 0.0 0.1 26428 65
Nevermind my last question. ZeroMQ is written on C++. Here is shown how you
can execute everything with almost empty main.
https://stackoverflow.com/questions/38717534/how-do-i-start-a-c-thread-at-program-startup
For C the only way is to use __attribute__((constructor)) AFAIK
пт, 8 янв. 2021 г.,
On Fri, Jan 08, 2021 at 08:17:25PM +0300, Vasily Postnicov wrote:
> I have noticed that after I kill stuck ping, the process spawned with
> cap_init() remains. I cannot even kill it with SIGKILL. This is the
> output of procstat on such a process.
>
>
> vasily 969 0.0 0.1 26428 6532 v0