On Saturday, 22 de January de 2011 17:16:10 Dawit A wrote:
> The above snippet of code is something I clipped from
>
http://git.videolan.org/?p=vlc.git;a=blob;f=bin/vlc.c;h=70eeed0d2299e2f3cf0c
> 2f6819120f02d0703152;hb=HEAD
>
> One cannot easily tell where QCoreApplication's ctor is getting
> called, but I suspect it is sometime after the call to libvlc_new(...)
> at line #201 and hence after all these signal blocking has occurred ??
> Since I was really not sure and did not want to waste to much time
> mucking around in a rather large and complex code base, I actually
> created a small test case to simulate the condition. I can clean that
> up and post it here if you want.
>
> Oh and the code that instantiates QCoreApplication seems to be located
> around line #533 in:
>
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/gui/qt4/qt4.cpp;h=e27c4e
> d33161c1979db7fbe6f1d0f466db1c7e09;hb=HEAD
Well, there are two components here: the signal handler and the signal mask.