From 16dd490345088b3f41d022e02734b8f6c9a48919 Mon Sep 17 00:00:00 2001 From: mestre Date: Sat, 23 Oct 2021 15:08:26 +0000 Subject: [PATCH] missed in previous commit this was ok tb@ --- games/backgammon/teachgammon/teach.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/games/backgammon/teachgammon/teach.c b/games/backgammon/teachgammon/teach.c index ae66d3b30fd..a46b0442c2f 100644 --- a/games/backgammon/teachgammon/teach.c +++ b/games/backgammon/teachgammon/teach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: teach.c,v 1.19 2021/02/06 21:42:30 mestre Exp $ */ +/* $OpenBSD: teach.c,v 1.20 2021/10/23 15:08:26 mestre Exp $ */ /* * Copyright (c) 1980, 1993 @@ -53,11 +53,12 @@ main(int argc, char *argv[]) { int i; + signal(SIGINT, getout); + initcurses(); + if (pledge("stdio rpath wpath cpath tty exec", NULL) == -1) err(1, "pledge"); - signal(SIGINT, getout); - initcurses(); text(hello); text(list); i = text(contin); -- 2.20.1