From 5b05b96ec0cbef6ed10adb1423cdedde09ee868e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 30 Dec 2016 08:30:59 +0100 Subject: Backport TERMKEY_FLAG_NOSTART and fix two leaks ...that are notably still present in the original library. --- termo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'termo.h') diff --git a/termo.h b/termo.h index f32d5f8..32eda4f 100644 --- a/termo.h +++ b/termo.h @@ -192,7 +192,9 @@ enum // Allow Ctrl-C to be read as normal, disabling SIGINT TERMO_FLAG_CTRLC = 1 << 6, // Return ERROR on signal (EINTR) rather than retry - TERMO_FLAG_EINTR = 1 << 7 + TERMO_FLAG_EINTR = 1 << 7, + // Do not call termkey_start() in constructor + TERMO_FLAG_NOSTART = 1 << 8 }; enum -- cgit v1.2.3