Karsten Schoelzel wrote: >Here is a patch which solves the problem by: >If there is a short write in save2tmp stop trying and return with a error >code. >In the main program examine the return code of child processes on SIGCHLD. >If an error occured say so in the Download List Panel.
It's a shame you can't propagate the actual error code through, but this is definitely better than the previous code :-) >@@ -6400,7 +6407,9 @@ DownloadListBuffer(void) > if (d->ok) { > Strcat(src, Sprintf("<input type=submit name=ok%d value=OK>", > d->pid)); >- if (size < d->size) >+ if (d->err) >+ Strcat_charp(src, " Error while saving file"); >+ else if (size < d->size) > Strcat_charp(src, " Download incompleted"); > else > Strcat_charp(src, " Download completed"); While you're changing this bit you might as well fix the grammar error: "Download incompleted" is definitely wrong; "Download in progress" is better (though I am making assumptions about when it's printed). -- PMM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]