From 3f3589673062584cd84d5c702926b2f74131854b Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 15 Oct 2015 16:38:04 +0000 Subject: [PATCH] Handle F_ISATTY in the fcntl() stub as well ok guenther --- lib/librthread/rthread_cancel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librthread/rthread_cancel.c b/lib/librthread/rthread_cancel.c index 283a86a6c43..0a7a35cdb44 100644 --- a/lib/librthread/rthread_cancel.c +++ b/lib/librthread/rthread_cancel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_cancel.c,v 1.9 2014/08/31 20:23:10 guenther Exp $ */ +/* $OpenBSD: rthread_cancel.c,v 1.10 2015/10/15 16:38:04 deraadt Exp $ */ /* $snafu: libc_tag.c,v 1.4 2004/11/30 07:00:06 marc Exp $ */ /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman */ @@ -200,6 +200,7 @@ fcntl(int fd, int cmd, ...) case F_GETFD: case F_GETFL: case F_GETOWN: + case F_ISATTY: rv = _thread_sys_fcntl(fd, cmd); break; case F_GETLK: -- 2.20.1