:: Re: [DNG] amixer-gtk (was: Re: mixe…
Forside
Slet denne besked
Besvar denne besked
Skribent: aitor
Dato:  
Til: dng
Emne: Re: [DNG] amixer-gtk (was: Re: mixer for alsa)
Hi,

On 29/1/23 1:07, aitor wrote:
>
> Hi,
>
> On 29/1/23 1:00, aitor wrote:
>> Therefore, I decided to remove the dependency on libprocps in all of my projects and now I'm using
>> another method that requires the kernel config variable CONFIG_PROC_CHILDREN to be enabled. So is in
>> the stock kernel of debian:
>>
>> CONFIG_PROC_CHILDREN=y
>>
>> Note that this variable determines the presence of the files /proc/<pid>/task/<tid>/children, where
>> <tid> are the identifiers of the tasks carried out in the process with pid=<pid>.
>
> Further info:
>
> https://man7.org/linux/man-pages/man5/proc.5.html
>
> Aitor.
>

Looking at the code of eudev, I've found a way to request TERM signal if
parent exits:

prctl(PR_SET_PDEATHSIG, SIGTERM);

It requires the library <sys/prctl.h>

Manpages:

https://man7.org/linux/man-pages/man2/prctl.2.html

Cheers,

Aitor.