From f66d8e4940272ba97f7a785fbe18df3cd74fdbdd Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Apr 2006 22:06:47 +0000 Subject: automerge commit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@19391 f38db490-d61c-443f-a65b-d21fe96a405b --- asterisk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asterisk.c') diff --git a/asterisk.c b/asterisk.c index 40b822f69..5e1423e86 100644 --- a/asterisk.c +++ b/asterisk.c @@ -615,6 +615,8 @@ static void *listener(void *unused) consoles[x].fd = s; if (ast_pthread_create(&consoles[x].t, &attr, netconsole, &consoles[x])) { ast_log(LOG_ERROR, "Unable to spawn thread to handle connection: %s\n", strerror(errno)); + close(consoles[x].p[0]); + close(consoles[x].p[1]); consoles[x].fd = -1; fdprint(s, "Server failed to spawn thread\n"); close(s); -- cgit v1.2.3