GNOME Bugzilla – Bug 424248
pan hangs around when the queu is empty when downloading nzb from command line
Last modified: 2007-04-07 04:31:40 UTC
Please describe the problem: When the queue empties, the process just hangs around until it gets receives a signal. This behavior can be observed while downloading using an nzb file from the command line. Steps to reproduce: 1. start pan with : pan -o somedir --nogui --nzb somefile.nzb 2. 3. Actual results: Pan starts, downloads the attachement and the process sleeps when the queue empties. Expected results: It should exit cleanly. Does this happen every time? yes Other information:
There is a related complaint about this with someone else who wanted to add a --headers command-line facility. I know how to fix this -- and am pretty sure Charles' would agree that especially in the --nogui situation it doesn't make sense for the Pan process to stick around. I will work on a patch for this and submit it here.
Created attachment 85684 [details] [review] Added feature: Quits pan if in non-gui mode and if the queue reaches size 0 This patch makes pan quit when it is done with its tasks in non-gui mode. Previous to this patch pan would just hang around sleeping forever until it received a signal (because the glib/gtk mainloop was never exited). Please apply against svn rev 215. This also addresses someone else's feature request from the mailing list who wanted to be able to DL headers from a script. He also complained about the pan process hanging around after the job is done.
PS: Hey sorry Eric for not remembering that it was *you* who complained about this behavior of pan. Anyway I am putting this here for completeness: the related bug that also could benefit from this patch is bug #424240.
Works for me. Good job Calin!
Great! Now.. convince Charles to add it to svn.. ;)
http://svn.gnome.org/viewcvs/pan2?view=rev&revision=217