summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--broadcast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/broadcast.c b/broadcast.c
index e5957ae..afea3e4 100644
--- a/broadcast.c
+++ b/broadcast.c
@@ -54,6 +54,10 @@ int main(int argc, char *argv[]) {
     int local = STDERR_FILENO;
     int remote = STDOUT_FILENO;
 
+    if (isatty(remote)) {
+        errx(EX_USAGE, "stdout is not redirected");
+    }
+
     error = tcgetattr(local, &saveTerm);
     if (error) err(EX_IOERR, "tcgetattr");
     atexit(restoreTerm);
t-pink/commit/parsing.c?h=1.4.1&id=93d8ef8f1de4385c565049e1ccd7fdd25e6c14d7&follow=1'>parsing.c: make commit buffer constJohn Keeping 2014-06-30Bump version.Jason A. Donenfeld 2014-06-29remove debug fprinf() calls that sneaked in with commit 79c985Christian Hesse 2014-06-28git: update to 2.0.1Christian Hesse 2014-06-28ui-patch: Flush stdout after outputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse