From owner-svn-src-all@FreeBSD.ORG Thu Jun 10 10:28:38 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD89B106566B; Thu, 10 Jun 2010 10:28:38 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AD9698FC12; Thu, 10 Jun 2010 10:28:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5AAScvj018975; Thu, 10 Jun 2010 10:28:38 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5AAScuj018973; Thu, 10 Jun 2010 10:28:38 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201006101028.o5AAScuj018973@svn.freebsd.org> From: Gabor Kovesdan Date: Thu, 10 Jun 2010 10:28:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208975 - head/usr.bin/dc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 10:28:38 -0000 Author: gabor Date: Thu Jun 10 10:28:38 2010 New Revision: 208975 URL: http://svn.freebsd.org/changeset/base/208975 Log: - Axe out signal handling code, the shell will take care of this Suggested by: jilles Approved by: delphij (mentor) Modified: head/usr.bin/dc/bcode.c Modified: head/usr.bin/dc/bcode.c ============================================================================== --- head/usr.bin/dc/bcode.c Thu Jun 10 10:17:00 2010 (r208974) +++ head/usr.bin/dc/bcode.c Thu Jun 10 10:28:38 2010 (r208975) @@ -54,7 +54,6 @@ struct bmachine { }; static struct bmachine bmachine; -static void got_sigint(int); static __inline int readch(void); static __inline void unreadch(void); @@ -221,14 +220,6 @@ static const struct jump_entry jump_tabl #define JUMP_TABLE_DATA_SIZE \ (sizeof(jump_table_data)/sizeof(jump_table_data[0])) -static void -got_sigint(int ignored __unused) -{ - - putchar('\n'); - exit(0); -} - void init_bmachine(bool extended_registers) { @@ -261,7 +252,6 @@ init_bmachine(bool extended_registers) bmachine.obase = bmachine.ibase = 10; BN_init(&zero); bn_check(BN_zero(&zero)); - signal(SIGINT, got_sigint); } /* Reset the things needed before processing a (new) file */