On Thu, May 19, 2011 at 07:00:32PM +0200, Jiri Olsa wrote:
On Thu, May 19, 2011 at 04:02:46PM +0300, Akos PASZTORY wrote:
> Hi,
>
> when you Ctrl-C latrace, the control dir/file stays around:
> $ ./latrace -q /bin/cat
> controled config: /tmp/lt-config-Bl4RzW/config
> <Ctrl-C>
> $ ls -d /tmp/lt-config-*
> /tmp/lt-config-Bl4RzW/config
yeaa, I was wondering when somebody will notice.. and send a patch ;)
>
> This happens because the signal terminates latrace itself in lt_run().
> It could maybe install a SIGINT handler that sets a flag and wrap the
> waitpid() into an loop that checks for EINTR plus this flag...
I think thats right.. will fix it along those lines
thanks,
jirka
please check
git://fedorapeople.org/~jolsa/latrace.git
branch signal_handlers
any comments/testing is welcome ;)
thanks,
jirka