lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Re: pre4 (patch) tiny trace messages fix


From: Leonid Pauzner
Subject: lynx-dev Re: pre4 (patch) tiny trace messages fix
Date: Thu, 20 May 1999 12:28:56 +0400 (MSD)

* Add CTRACE_FLUSH call before fork() in NSL_FORK logic so child's messages
  will not mess parent ones.
* Few trace messages added.
* HTReadProgress message now display statusline properly in TRACE mode
  (was always broken since early HTReadProgress days).



diff -u old/htalert.c ./htalert.c
--- old/htalert.c       Fri Apr 23 07:56:36 1999
+++ ./htalert.c Thu May 20 10:45:52 1999
@@ -180,10 +180,8 @@
            }

            /* do not store the message for history page. */
-           if (TRACE)
-               fprintf(tfp, "%s\n", line);
-           else
-               statusline(line);
+           statusline(line);
+           CTRACE(tfp, "%s\n", line);
        }
     }
 }
diff -u old/httcp.c ./httcp.c
--- old/httcp.c Thu May 13 11:12:14 1999
+++ ./httcp.c   Wed May 19 20:47:42 1999
@@ -687,6 +687,8 @@
     CTRACE(tfp, "LYGetHostByName: Calling gethostbyname(%s)\n", host);
 #endif /* MVS */

+    CTRACE_FLUSH(tfp);  /* so child messages will not mess parent log */
+
     lynx_nsl_status = HT_INTERNAL;     /* should be set to something else 
below */

 #ifdef NSL_FORK
diff -u old/lycgi.c ./lycgi.c
--- old/lycgi.c Wed May  5 17:34:00 1999
+++ ./lycgi.c   Wed May 19 20:50:22 1999
@@ -380,6 +380,7 @@
            }
            fflush(stdout);
            fflush(stderr);
+           CTRACE_FLUSH(tfp);

            if ((pid = fork()) > 0) { /* The good, */
                int chars, total_chars;
diff -u old/lycurses.c ./lycurses.c
--- old/lycurses.c      Thu May 13 11:14:50 1999
+++ ./lycurses.c        Wed May 19 20:21:28 1999
@@ -657,6 +657,7 @@
        sock_init();

     LYCursesON = TRUE;
+    CTRACE(tfp, "start_curses: done.\n");
     clear();
     noecho();
 }
@@ -670,8 +671,10 @@
 #ifdef USE_SLANG
     static int slinit;

-    if (LYCursesON)
+    if (LYCursesON) {
+       CTRACE(tfp, "start_curses: Hmm, already ON.\n");
        return;
+    }

     if (slinit == 0) {
        SLtt_get_terminfo();
@@ -871,6 +874,7 @@
 #endif

     LYCursesON = TRUE;
+    CTRACE(tfp, "start_curses: done.\n");
 }


@@ -960,6 +964,7 @@
     fflush(stderr);

     LYCursesON = FALSE;
+    CTRACE(tfp, "stop_curses: done.\n");

 #if defined(SIGTSTP) && defined(USE_SLANG)
 #ifndef VMS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]