Skip to content
Browse files

pillowfight.cc: use SIG_IGN instead

Change-Id: I733cc262b3d3be53881a973f6dc88e4240cae0aa
Reviewed-on: http://review.couchbase.org/25106
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 753f45f commit 94d79c908d8047e35789436015ec42eb4a8ee53f @avsej avsej committed with trondn Mar 12, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −4 example/pillowfight/pillowfight.cc
View
5 example/pillowfight/pillowfight.cc
@@ -590,11 +590,8 @@ static void setup_sigint_handler(void (handler)(int));
extern "C" {
static void cruel_handler(int);
static void gentle_handler(int);
- static void deaf_handler(int);
}
-static void deaf_handler(int) { }
-
static void cruel_handler(int)
{
delete ctx;
@@ -625,7 +622,7 @@ static void setup_sigint_handler(void (handler)(int))
*/
int main(int argc, char **argv)
{
- setup_sigint_handler(deaf_handler);
+ setup_sigint_handler(SIG_IGN);
handle_options(argc, argv);
InstancePool pool(config.getNumInstances());

0 comments on commit 94d79c9

Please sign in to comment.
Something went wrong with that request. Please try again.