Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: isabella parakiss Newsgroups: gnu.bash.bug Subject: check if DEBUG is defined in trap.c Date: Sat, 26 Sep 2015 04:49:42 +0200 Lines: 28 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org X-Trace: usenet.stanford.edu 1443235860 31130 208.118.235.17 (26 Sep 2015 02:51:00 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent; bh=CV+A1Lh0txTHgoylGDxOOwWQp4Ztf+yvilHNfJttIIo=; b=HOeVPwrUMKrBNZQ//kJ8hd1Po8v2ARK3SwktuNngFbTJ7tmox18yBjNkFPCD5mUsaW QFpicMw8spun3WIJZ1imhXypIbT5UzVOJ8GC6WI2SL4UnSZBD509hVNONkITAW0E1vAn OIAGqgHXXN7XjZnRUjUO0Psjwm2Efh5VnJtZGLolXMr48PGBzsanTsOXGNE/d8acOvfF 5p/SaVJt0sNDse1zicFKyWiAVyrzj9uaE+LVfetKM/pLi/WsYdRf6qb2WBEp/tNfGfF1 WRtb5X//q25m/AKA5/HOAAWdEcbsSjdUGgg358kbSv1FZcbTAW0LeVvAYX2Y7R1ERiEf Bajg== X-Received: by 10.180.211.39 with SMTP id mz7mr6651975wic.65.1443235853671; Fri, 25 Sep 2015 19:50:53 -0700 (PDT) User-Agent: mail v14.8.5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11564 diff --git a/trap.c b/trap.c index bf911ac..0a47f19 100644 --- a/trap.c +++ b/trap.c @@ -320,7 +320,9 @@ run_pending_traps () while (pending_traps[sig]--) instead of the if statement. */ if (pending_traps[sig]) { +#if defined (DEBUG) itrace("run_pending_traps: %d: %d", sig, pending_traps[sig]); +#endif if (running_trap == sig+1) /*continue*/; @@ -404,7 +406,9 @@ itrace("run_pending_traps: %d: %d", sig, pending_traps[sig]); /* XXX - set pending_traps[sig] = 0 here? */ pending_traps[sig] = 0; evalstring (savestring (trap_list[sig]), "trap", SEVAL_NONINT|SEVAL_NOHIST|SEVAL_RESETLINE); +#if defined (DEBUG) itrace("run_pending_traps: evalstring returns"); +#endif #if defined (JOB_CONTROL) restore_pipeline (1); #endif --- xoxo iza