diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-30 08:30:59 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-30 08:30:59 +0100 |
commit | 5b05b96ec0cbef6ed10adb1423cdedde09ee868e (patch) | |
tree | 69e15ab41f5367d07c2d1cff8d06d1022c7c0d7a /termo.h | |
parent | a9b41e41b7789924465a7e5596a463ed93d8fc26 (diff) | |
download | termo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.tar.gz termo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.tar.xz termo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.zip |
Backport TERMKEY_FLAG_NOSTART and fix two leaks
...that are notably still present in the original library.
Diffstat (limited to 'termo.h')
-rw-r--r-- | termo.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |