Re: gcov can't collect data when process is executed by systemctl start but it can when executed by ./process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31/07/17 14:40, Xi Ruoyao wrote:
> On 2017-07-31 14:05 +0200, Toebs Douglass wrote:

>> But you can't *do* anything much in a signal handler, no?
> 
> No we can't.  Normally it's just
> 
> bool is_terminating = false;
> 
> void handler(int signum)
> {
>   is_terminating = true;
> }
> 
> And let the normal code (outside signal context) detect is_terminating, do some
> clean up, and exit.

Ah - my mistake; mentally I was thinking SIGKILL, not SIGTERM :-)





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux