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? David