Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109414951
D28689.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
484 B
Referenced Files
None
Subscribers
None
D28689.diff
View Options
diff --git a/contrib/ee/ee.c b/contrib/ee/ee.c
--- a/contrib/ee/ee.c
+++ b/contrib/ee/ee.c
@@ -554,6 +554,13 @@
for (counter = 1; counter < 24; counter++)
signal(counter, SIG_IGN);
+ /* Always read from (and write to) a terminal. */
+ if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
+ fprintf(stderr,
+ "ee's standard input and output must be a terminal\n");
+ exit(1);
+ }
+
signal(SIGCHLD, SIG_DFL);
signal(SIGSEGV, SIG_DFL);
signal(SIGINT, edit_abort);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 6:43 PM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16478941
Default Alt Text
D28689.diff (484 B)
Attached To
Mode
D28689: ee: restore the stdin/stdout terminal check
Attached
Detach File
Event Timeline
Log In to Comment