Page MenuHomeFreeBSD

D28689.diff
No OneTemporary

D28689.diff

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

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)

Event Timeline