[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: suppress log file for gschem



Hi,

gschem's  log file is causing problems for me.

In s_log_read() in s_log.c:

 228   /* read its contents and build a string */
 229   contents = g_string_new ("");
 230   while ((len = read (logfile_fd, &buf, BUFSIZE)) != 0) {
 231     contents = g_string_append_len (contents, buf, len);
 232   }

Maybe "read()!=0" should be "read()>0".

Anyway, when I create a zero length file, then try to read() from it,
read() returns 0 on ext3 filesystem, but -1 on vboxsf, which I'm using
on my laptop.  So the above code runs forever, because read() never
equals zero.

It's a huge task to recompile all of gEDA for this bugfix.  Is there a
way I can just switch off logging entirely?

Regards,
Mark
markrages@gmail
-- 
Mark Rages, Engineer
Midwest Telecine LLC
markrages@xxxxxxxxxxxxxxxxxxx


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user