From dd88d578fd1341eb152f5143bb45e7d27462665f Mon Sep 17 00:00:00 2001
From: "Kevin P. Fleming" <kpfleming@digium.com>
Date: Thu, 1 Sep 2005 22:03:10 +0000
Subject: [PATCH] eliminate the urgent handler message, since it can causing
 blocking in the stdio library (issue #5087)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 asterisk.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/asterisk.c b/asterisk.c
index d6a41b5065..179f16ccbb 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -631,8 +631,12 @@ static void urg_handler(int num)
 	/* Called by soft_hangup to interrupt the poll, read, or other
 	   system call.  We don't actually need to do anything though.  */
 	/* Cannot EVER ast_log from within a signal handler */
+	/* SLD: seems to be some pthread activity relating to the printf anyway:
+	 * which is leading to a deadlock? */
+#if 0
 	if (option_debug > 2) 
 		printf("-- Asterisk Urgent handler\n");
+#endif
 	signal(num, urg_handler);
 	return;
 }
-- 
GitLab