From: mestre Date: Sat, 23 Oct 2021 15:08:26 +0000 (+0000) Subject: missed in previous commit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=16dd490345088b3f41d022e02734b8f6c9a48919;p=openbsd missed in previous commit this was ok tb@ --- 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);