[PATCH] KDirWatch, DNOTIFY, SIGIO/SIGPOLL, BR50014

Josef Weidendorfer Josef.Weidendorfer at gmx.de
Tue Nov 19 16:11:18 GMT 2002


On Tuesday 19 November 2002 15:43, Waldo Bastian wrote:
> Hello,
>
> BR50014 complaints about kded dieing on a SIGPOLL signal. It's a bit a
> mystery why we get a SIGPOLL but it appears that we can get a SIGPOLL as
> part of the DNOTIFY signalling, when the kernel queue for DNOTIFY signals
> overflows, it sends a SIGPOLL to indicate that situation.
>
> See e.g. http://groups.google.com/groups?oi=djq&selm=an_366163395
> (SIGIO and SIGPOLL are the same signal)
>
> The following patch adds support for this feature to kdirwatch.

Looks good.

I'm still not very happy with DNOTIFY. Using up signals is not the right thing 
for libraries...
Qt or any KDE app will never use any realtime signals and thus SIGIO, too?


>
> BR50014 remains a mystery because under normal situations kded will be fast
> enough to handle incoming DNOTIFY signals.

Perhaps if you do a "make -j install" of kdelibs?
Don't know...

>
> To test / reproduce, stop kded and run it from a terminal with:
> 	kded --nofork
>
> Then run the following script:
> 	export a=$HOME/.kde/share/applnk/bla
> 	while touch $a; do rm $a;done
>
> On my PC this does not cause problems for kded, but if you suspend (^Z)
> kded and then resume it again (fg) kded will receive a SIGPOLL.
>
> Cheers,
> Waldo





More information about the kde-core-devel mailing list