Subject | Hash | Author | Date (UTC) |
---|---|---|---|
fix cleanup on error | d6ef4a470f5ba8b7b36d39cd1cb2418d58257fc0 | Joey Hess | 2012-05-22 17:39:24 |
releasing version 0.46 | d4f8bd597243c251d8528b5f6e5e1993dda42ccb | Joey Hess | 2012-04-10 15:48:31 |
cleanup | 4549f5d3e3ac049668bd41b7d3de214c7826f69b | Joey Hess | 2012-04-09 20:19:20 |
combine: Avoid reading files twice, to support data coming from pipes. Closes: #667960 Thanks, Carsten Hey | bbfa7f9a5d262d13c825005f89410f464148fd1d | Joey Hess | 2012-04-09 20:18:21 |
updated debian copyright format url | b70bf8f3b34e03acfe4ed906929e1a3f2b42dd4b | Joey Hess | 2012-02-25 14:53:16 |
Typo. Closes: #649158 | 9991e280ec2364b4605c5b7371829af39c662043 | Joey Hess | 2011-11-18 17:37:25 |
releasing version 0.45 | 929dee9e4544801af94a68a4e4631484fff4a3f3 | Joey Hess | 2011-06-19 20:20:19 |
ts: Support %.s for seconds sinch epoch with subsecond resolution. Closes: #619764 | bb190ff90f192cb50c086abec11459ab09c205f1 | Joey Hess | 2011-04-01 18:36:03 |
releasing version 0.44 | c27365c4f2a7e42841aef3f53b9316b4aaab730a | Joey Hess | 2011-03-10 21:38:58 |
pee: Propigate exit status of commands run. | 6827d8ff8e7c4e2003c6065d1769c780b4f96973 | Joey Hess | 2011-02-19 21:35:32 |
dep5 update | da4a447c4fda5972cd486c3d6e342476429b2733 | Joey Hess | 2011-02-19 21:35:08 |
typo: sed s/agganges/arranges/ | d85a95af34ba2cca2436f18e87a4a49154e170a5 | Barak A. Pearlmutter | 2011-01-24 14:02:44 |
DEP-5 | ec60338bdec33b47872932c9a1c05f352baea1a4 | Joey Hess | 2011-01-13 21:24:02 |
releasing version 0.43 | 3bd91ea4f68fcc0bdc3d4cab3cb51095a87ab1f4 | Joey Hess | 2010-10-31 00:59:44 |
chronic: New command, runs a command quietly, unless it fails. | 11eb9b1ae7b81f3bbf52047a7a8ec995b7808970 | Joey Hess | 2010-10-29 19:49:33 |
releasing version 0.42 | dc7df101d71be5c504529a47c541aa8bfc82edca | Joey Hess | 2010-10-07 00:06:06 |
update | 1895d25c9bca0b78b86592f568710d8f45735f08 | Joey Hess | 2010-09-13 20:38:28 |
minor | 6d1ac81ec62f257ea17b9548ad539b64c743124a | Joey Hess | 2010-09-13 20:36:55 |
put back optimisation when outputting to stdout | 32b1e7134b8f07cd3e16d4e3dc7414cbf1305e07 | Joey Hess | 2010-09-13 20:33:56 |
sponge: Ensure that output file permissions are always preserved if it already exists. | 1ac3e2c08bae4bd8e5e771dab94564d79638d414 | Joey Hess | 2010-09-13 20:08:01 |
File | Lines added | Lines deleted |
---|---|---|
pee.c | 2 | 2 |
File pee.c changed (mode: 100644) (index cd3ff20..a8565c0) | |||
... | ... | main(int argc, char **argv) { | |
40 | 40 | pipes[i - 1] = popen(argv[i], "w"); | pipes[i - 1] = popen(argv[i], "w"); |
41 | 41 | if (!pipes[i - 1]) { | if (!pipes[i - 1]) { |
42 | 42 | fprintf(stderr, "Can not open pipe to '%s\'\n", argv[i]); | fprintf(stderr, "Can not open pipe to '%s\'\n", argv[i]); |
43 | close_pipes(pipes, i); | ||
43 | close_pipes(pipes, argc); | ||
44 | 44 | ||
45 | 45 | exit(EXIT_FAILURE); | exit(EXIT_FAILURE); |
46 | 46 | } | } |
... | ... | main(int argc, char **argv) { | |
52 | 52 | for(i = 0; i < argc; i++) { | for(i = 0; i < argc; i++) { |
53 | 53 | if (fwrite(buf, sizeof(char), r, pipes[i]) != r) { | if (fwrite(buf, sizeof(char), r, pipes[i]) != r) { |
54 | 54 | fprintf(stderr, "Write error to `%s\'\n", argv[i + 1]); | fprintf(stderr, "Write error to `%s\'\n", argv[i + 1]); |
55 | close_pipes(pipes, i); | ||
55 | close_pipes(pipes, argc); | ||
56 | 56 | exit(EXIT_FAILURE); | exit(EXIT_FAILURE); |
57 | 57 | } | } |
58 | 58 | } | } |