Possible nALFS bug discovery?

Neven Has haski at sezampro.yu
Fri Apr 19 03:53:20 PDT 2002


On Fri, Apr 19, 2002 at 09:23:24AM +0200, Raphael Schmid wrote:
> Hi Everyone again,
> 
> I just tried the -i switch for the first time (using nALFS 1.0.5
> on an i486, compiled with "-O2 -m486") and what should I say?
> 	
> 	Well, it segfaulted on me!

Ups. :) I forgot to test that mode after adding backend status symbols.

This patch should fix it. I'll probably release a new version with only
this included latter today.


Thanks,

Neven
-------------- next part --------------
===== src/nalfs.c 1.46 vs edited =====
--- 1.46/src/nalfs.c	Wed Apr 17 15:08:28 2002
+++ edited/src/nalfs.c	Fri Apr 19 12:41:16 2002
@@ -2167,7 +2167,10 @@
 	}
 
 	backend_status = BACKEND_RUNNING;
-	draw_backend_status();
+
+	if (OPTION_INTERACTIVE) {
+		draw_backend_status();
+	}
 }
 
 static void do_mark_for_running(element_t *el)
@@ -3687,7 +3690,6 @@
 
 	if (attrs != COL_RAW) {
 		printf("\n%c: ", msg_type_to_char(attrs));
-		fflush(stdout);
 
 		if (OPTION_LOG_STATUS_WINDOW && fp) {
 			fprintf(fp, "\n%c: ", msg_type_to_char(attrs));
@@ -3695,6 +3697,7 @@
 	}
 
 	vprintf(format, ap);
+	fflush(stdout);
 
 	if (OPTION_LOG_STATUS_WINDOW && fp) {
 		vfprintf(fp, format, ap);


More information about the alfs-discuss mailing list