From 4aa6b5ce49d9da9261d5d7b662ce7de87047e5e6 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Tue, 5 Aug 2008 23:43:26 +0200 Subject: [PATCH] Slightly more informational message when the cleanup-on-exit is aborted due to remaining threads. Rev: src/module.c:1.58 --- src/module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/module.c b/src/module.c index 892ef46a4e..752d8f279a 100644 --- a/src/module.c +++ b/src/module.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: module.c,v 1.57 2008/08/05 21:23:46 mast Exp $ +|| $Id: module.c,v 1.58 2008/08/05 21:43:26 mast Exp $ */ #include "global.h" @@ -167,7 +167,9 @@ static void exit_builtin_modules(void) #ifdef PIKE_THREADS if(count_pike_threads()) { - fprintf(stderr,"Byte counting aborted, because all threads have not exited properly.\n"); + fprintf(stderr,"Cleanup-on-exit aborted " + "because %d thread(s) still are running.\n", + count_pike_threads()); exit_with_cleanup = 0; return; } -- GitLab