From fc422af5d88cb1e3c3b663b43fe2e8e800eff2f7 Mon Sep 17 00:00:00 2001 From: ramiro Date: Tue, 26 May 1998 11:08:10 +0000 Subject: [PATCH] In mozilla.c it says that XFE_InitDNS_Early is called before NSPR, etc.; but the LOG macro calls PR_smprintf which fires up NSPR. Use fprintf instead of LOG() for this case. Thanks to tenthumbs@cybernex.net. git-svn-id: svn://10.0.0.236/trunk@2259 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/xfe/xfe-dns.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/cmd/xfe/xfe-dns.c b/mozilla/cmd/xfe/xfe-dns.c index f0d251212a7..27c6a0621ce 100644 --- a/mozilla/cmd/xfe/xfe-dns.c +++ b/mozilla/cmd/xfe/xfe-dns.c @@ -54,7 +54,13 @@ int sock; #ifdef UNIX_ASYNC_DNS static XP_Bool done = FALSE; - LOG("XFE_InitDNS_Early", ("calling DNS_SpawnProcess.\n")); + /* + * The following used to be LOG() instead of fprintf(). But, LOG() uses + * PR_smprintf() which fires up NSPR. + */ +#ifdef PROC1_DEBUG_PRINT + fprintf(stderr, "\tproc1 (%d): %s\n", getpid(), "XFE_InitDNS_Early: calling DNS_SpawnProcess."); +#endif sock = DNS_SpawnProcess(argc, argv); XP_ASSERT(!done);