Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-23 Thread Thiago Macieira
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,

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-23 Thread Thiago Macieira
On Sunday, 23 de January de 2011 23:20:37 Dawit A wrote: Anyhow, after reading the response of one of the VLC developers in bug report I listed in the original email, I am convinced that the reliance on signals, which can so easily get cleared or worse blocked, in a library class seems a

The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Dawit A
Hi, I have long been bothered by a problem with VLC freezing when you attempt to open the file dialog (CTRL+O). I finally decided to investigate the issue and what I discovered is something I think should be discussed here. The bug in VLC, https://bugs.kde.org/show_bug.cgi?id=260719, happens

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Thiago Macieira
On Saturday, 22 de January de 2011 14:25:07 Dawit A wrote: Anyhow, this problem is not specific to VLC and can happen to any Qt application that blocks the SIGCHLD signals from reaching any of the threads. As such I think some action needs to be taken to address this issue. We can workaround

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Christoph Bartoschek
Am Samstag 22 Januar 2011 schrieb Thiago Macieira: However, what I really want is that kernel developers give me a modern way of finding out a process has exited. Hi, I do not know whether it works as desired, but did you look at signalfd(2)? Christoph

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Thiago Macieira
On Saturday, 22 de January de 2011 22:08:25 Christoph Bartoschek wrote: Am Samstag 22 Januar 2011 schrieb Thiago Macieira: However, what I really want is that kernel developers give me a modern way of finding out a process has exited. Hi, I do not know whether it works as desired, but did

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Dawit A
On Sat, Jan 22, 2011 at 3:55 PM, Thiago Macieira thi...@kde.org wrote: On Saturday, 22 de January de 2011 14:25:07 Dawit A wrote: Anyhow, this problem is not specific to VLC and can happen to any Qt application that blocks the SIGCHLD signals from reaching any of the threads. As such I think

Re: The hidden problem with using QProcess/KProcess in kdelibs...

2011-01-22 Thread Michael Pyne
On Saturday, January 22, 2011 16:53:29 Thiago Macieira wrote: On Saturday, 22 de January de 2011 22:08:25 Christoph Bartoschek wrote: Am Samstag 22 Januar 2011 schrieb Thiago Macieira: However, what I really want is that kernel developers give me a modern way of finding out a process has