From 1b8234e3425e518f40e00751cd0e5261649c166e Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 25 Aug 2011 10:48:41 +0100 Subject: Provide a flag to return RES_ERROR even on signal (EINTR); without it, retry the operation --- termkey_waitkey.3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'termkey_waitkey.3.sh') diff --git a/termkey_waitkey.3.sh b/termkey_waitkey.3.sh index 81d9f6e..ee8edaf 100644 --- a/termkey_waitkey.3.sh +++ b/termkey_waitkey.3.sh @@ -27,7 +27,7 @@ A key event as been provided. No key events are ready and the terminal has been closed, so no more will arrive. .TP .B TERMKEY_RES_ERROR -An IO error occured. \fIerrno\fP will be preserved. +An IO error occured. \fIerrno\fP will be preserved. If the error is \fBEINTR\fP then this will only be returned if \fBTERMKEY_FLAG_EINTR\fP flag is not set; if it is then the IO operation will be retried instead. .SH EXAMPLE The following example program prints details of every keypress until the user presses "Ctrl-C". .PP -- cgit v1.2.3-54-g00ecf