Possible PolicyKit issues
Joe Marcus Clarke
marcus at freebsd.org
Wed Apr 30 10:52:39 PDT 2008
David Zeuthen wrote:
> On Wed, 2008-04-30 at 13:44 -0400, Joe Marcus Clarke wrote:
>> Correct. I think it does read all the data, then the stream puts out
>> EOF which causes the helper to be called ad infinitum.
>
> I see. Mmm.. In that case, polkit_grant_io_func() can detect EOF
> (getline() returning -1) and then call the remove_watch() method
> supplied by polkit-gnome-manager.c right?
It could, but what's the difference between that and returning FALSE in
the caller? Both would result in the watch being removed. And since
the io_func reads the entire amount of data (until EOF) that shouldn't
be a problem.
Joe
>
> David
>
>
>
--
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
More information about the hal
mailing list