Subject | Hash | Author | Date (UTC) |
---|---|---|---|
pee: remove buffering of input and outputs. | cd95960319cb668e57241db5543eaa0dfa3e382a | Tilman Sauerbeck | 2017-01-25 15:41:17 |
vidir: reword man page to more explicit mention 'file' args (Closes: #885221) | ab0bda73cdd97fa399bb58856f934c069ccd6596 | Nicolas Schier | 2017-12-31 14:26:37 |
chronic: document return value semantics of -e option (Closes: #867167) | 6eedaa93d6a1d1430de5238a4101ed8bab0b64c3 | Nicolas Schier | 2017-12-31 14:26:36 |
pee: ignore SIGPIPE and write errors (Closes: #697052) | 5083c319d130bbf5ef1a071d178f1f30aa049e58 | Nicolas Schier | 2017-12-31 14:26:35 |
ts: Added %.T format like %T but with hi-res. | 19d1bde3491f737c2d3babd94de0de8eb9d9b1c9 | Joey Hess | 2017-11-27 21:18:56 |
make -m start at current time | 3d31d550ffc75f7eada0d6cb624a98423b54bbd2 | Joey Hess | 2017-10-31 17:02:48 |
document -m | c5a0deb4fbca8d95a63374e2b2ef1ac0f87520c1 | Joey Hess | 2017-10-31 16:58:05 |
else indent style fix | 52e35719dc334da747c543f0da8f2fd0e537b2c6 | Joey Hess | 2017-10-30 16:51:58 |
ts: Introduce '-m' option to use CLOCK_MONOTONIC | 96809417fcceb13c83caa6b16d8174ea209bce27 | Ben Leinweber | 2017-10-30 15:24:47 |
Revert "ts: Introduce '-m' option to use CLOCK_MONOTONIC" | b6a010d759c53befdc9755760d28b6647d50f8b0 | Joey Hess | 2017-10-30 16:50:34 |
ts: Add -m option to use monotonic clock. Thanks, Ben Leinweber | 12845e32adcaa18b83cd8f3f01fddf9189c7ebda | Joey Hess | 2017-10-30 16:49:36 |
else indent style fix | 5b628493242860cdbec41a23e23bb561c96e4b40 | Joey Hess | 2017-10-30 16:49:12 |
ts: Introduce '-m' option to use CLOCK_MONOTONIC | d4592ac408f2086a3ed305c3fccf9107763e2be4 | Ben Leinweber | 2017-10-30 15:24:47 |
releasing package moreutils version 0.61 | 01d1b22f22fae647cbfd855dc82f8d9548607ab0 | Joey Hess | 2017-04-19 14:31:30 |
chronic: Flush output more often to better preserve stdout,err ordering. | 53c35a635276bb78f098947755dd072b5b800358 | Joey Hess | 2016-10-17 15:49:07 |
releasing package moreutils version 0.60 | 1173bd9f10d731485f3b63f1c7ff55eb9c58a605 | Joey Hess | 2016-08-13 13:58:21 |
Modify Cygwin check to use findstring instead of uname -o | 2d427c09cff6e7666e07c301c4b46c6206362a36 | Tony Kelman | 2016-08-10 03:23:52 |
changelog | e725f4d1607312a8ed3a5690e2926c26d5c48a61 | Joey Hess | 2016-07-19 01:03:36 |
include licence text | 29f0d5b620d63de94c066d50e4e468b51037c543 | Joey Hess | 2016-07-19 01:03:25 |
add dependency | e1a2473fff49f7caee1561bff38ee43ba5a97507 | Joey Hess | 2016-07-19 01:02:15 |
File | Lines added | Lines deleted |
---|---|---|
pee.c | 15 | 2 |
File pee.c changed (mode: 100644) (index 9243f4e..92df61c) | |||
1 | 1 | #include <stdlib.h> | #include <stdlib.h> |
2 | 2 | #include <stdio.h> | #include <stdio.h> |
3 | #include <unistd.h> | ||
3 | 4 | #include <string.h> | #include <string.h> |
4 | 5 | #include <sys/types.h> | #include <sys/types.h> |
5 | 6 | #include <sys/wait.h> | #include <sys/wait.h> |
7 | #include <errno.h> | ||
6 | 8 | ||
7 | 9 | /* Licensed under the GPL | /* Licensed under the GPL |
8 | 10 | * Copyright (c) Miek Gieben, 2006 | * Copyright (c) Miek Gieben, 2006 |
... | ... | main(int argc, char **argv) { | |
76 | 78 | ||
77 | 79 | exit(EXIT_FAILURE); | exit(EXIT_FAILURE); |
78 | 80 | } | } |
81 | |||
82 | setbuf(pipes[i - 1], NULL); | ||
79 | 83 | } | } |
80 | 84 | argc--; | argc--; |
81 | 85 | ||
82 | while(!feof(stdin) && (!ferror(stdin))) { | ||
83 | r = fread(buf, sizeof(char), BUFSIZ, stdin); | ||
86 | for (;;) { | ||
87 | r = read(STDIN_FILENO, buf, BUFSIZ); | ||
88 | |||
89 | /* Interrupted by signal? Try again. */ | ||
90 | if (r == -1 && errno == EINTR) | ||
91 | continue; | ||
92 | |||
93 | /* Other error or EOF. */ | ||
94 | if (r < 1) | ||
95 | break; | ||
96 | |||
84 | 97 | for(i = 0; i < argc; i++) { | for(i = 0; i < argc; i++) { |
85 | 98 | if (inactive_pipe[i]) | if (inactive_pipe[i]) |
86 | 99 | continue; | continue; |