Andrew Wood
94ea82c10a
Indentation correction.
2024-10-04 10:21:23 +01:00
Andrew Wood
a6c978573f
Move pv_write_retry() and pv_tty_write() from cursor.c to display.c so they sit with all the other display functions.
2024-10-04 09:06:24 +01:00
Andrew Wood
31d70dae49
Use i18n tag rather than fix.
2024-10-04 08:53:44 +01:00
Andrew Wood
9a639b40b7
Use gmtime() instead of localtime() in debugging output to avoid lockups in signal handlers due to time zone lookups.
2024-10-04 08:53:14 +01:00
Andrew Wood
e84f47abc8
Refactor handling of TTOU so that instead of shuffling stderr to another file descriptor and using /dev/null when backgrounded, we set a flag to suspend terminal output, and perform all terminal writes through a new pv_tty_write function which checks that flag.
2024-10-03 23:03:31 +01:00
Andrew Wood
741e4b0b30
Source line number updates.
2024-10-03 23:00:03 +01:00
Andrew Wood
52a720ec33
Improve the readability of the code that handles SIGTTOU.
2024-10-03 22:08:11 +01:00
Andrew Wood
416c61a663
Re-order structure members to minimise padding / holes, after analysis with "pahole" on a 64-bit system.
2024-10-03 22:07:03 +01:00
Andrew Wood
23bd296aeb
Re-order structure members to minimise padding / holes, after analysis with "pahole" on a 64-bit system.
2024-10-03 21:25:41 +01:00
Andrew Wood
2c8843fc86
Expand the list of places to check for patches and bug reports.
2024-10-03 12:09:09 +01:00
Andrew Wood
aa07373c4e
Removed TODO.md, since it is just an outdated copy of the issue tracker.
2024-10-03 11:52:30 +01:00
Andrew Wood
a3b5a44f79
Add a translation status widget.
2024-09-29 16:04:41 +01:00
Andrew Wood
d5fad8db39
New German translations.
2024-09-29 12:18:11 +01:00
Andrew Wood
ef5d703682
Merge pull request 'Translations update from Codeberg Translate' ( #99 ) from translate/pv:weblate-pv-pv into main
...
Reviewed-on: https://codeberg.org/a-j-wood/pv/pulls/99
2024-09-29 11:09:37 +00:00
a-j-wood and Codeberg Translate
40efaf848e
Translated using Weblate (German)
...
Currently translated at 100.0% (118 of 118 strings)
Translation: pv/pv
Translate-URL: https://translate.codeberg.org/projects/pv/pv/de/
2024-09-29 11:07:52 +00:00
Andrew Wood
575854c8b9
Merge pull request 'Translations update from Codeberg Translate' ( #98 ) from translate/pv:weblate-pv-pv into main
...
Reviewed-on: https://codeberg.org/a-j-wood/pv/pulls/98
2024-09-29 10:56:36 +00:00
a-j-wood and Codeberg Translate
3299947cc1
Translated using Weblate (German)
...
Currently translated at 99.1% (117 of 118 strings)
Translation: pv/pv
Translate-URL: https://translate.codeberg.org/projects/pv/pv/de/
2024-09-29 10:47:39 +00:00
Hartmut Goebel and Codeberg Translate
9daeea7400
Translated using Weblate (German)
...
Currently translated at 99.1% (117 of 118 strings)
Translation: pv/pv
Translate-URL: https://translate.codeberg.org/projects/pv/pv/de/
2024-09-29 10:47:39 +00:00
Andrew Wood
4e51afc36c
Added a link to the Weblate instance for translations.
2024-09-28 22:09:07 +01:00
Andrew Wood
f1f333dc7a
Update version to 1.8.14.
v1.8.14
2024-09-07 21:33:24 +01:00
Andrew Wood
69a56ced7a
Correct double-free on exit when using --watchfd - issue #96 .
2024-09-07 21:04:09 +01:00
Andrew Wood
2c468b0bb2
Version bump for new release.
v1.8.13
2024-08-18 21:59:32 +01:00
Andrew Wood
c67248ffc7
Update to add the new strings in the options parser.
2024-08-06 23:35:55 +01:00
Andrew Wood
60936080da
Move the "--size @FILE" file size reading into its own function for clarity; standardise its error message format to "program: file: message: detail"; uniquely name variables; refuse to accept a directory as a file; and with this option, try reading the size of a block device from sysfs if we can, to avoid requiring read permissions on the device.
2024-08-06 23:17:15 +01:00
Andrew Wood
4db04564a9
Merge pull request 'Support block devices in @-syntax' ( #94 ) from alexanderperlis/pv:support-block-device-size into main
...
Reviewed-on: https://codeberg.org/a-j-wood/pv/pulls/94
2024-08-06 20:26:43 +00:00
Alexander Perlis
f6b0ddc0b3
Support block devices in @-syntax
2024-08-01 00:36:02 +00:00
Andrew Wood
b42399e9a9
Timestamp update.
v1.8.12
2024-07-18 22:23:48 +01:00
Andrew Wood
ba72056bf2
Version bump.
2024-07-18 22:10:57 +01:00
Andrew Wood
b8e4a51228
Update line numbers.
2024-07-18 22:08:34 +01:00
Andrew Wood
0b12f7db42
Update TODO to reflect issue tracker.
2024-07-18 22:01:36 +01:00
Andrew Wood
5053cffdad
Further clarification of #92 , #93 .
2024-07-17 07:45:13 +01:00
Andrew Wood
02f852604f
Add #93 .
2024-07-17 07:42:18 +01:00
Andrew Wood
e4ab8c56a0
Minor adjustment to comments.
2024-07-17 07:41:48 +01:00
Andrew Wood
86016d41d7
Merge pull request 'Improve description and comments for blocking-write() after select()' ( #93 ) from eborisch/pv:update-block-after-select into main
...
Reviewed-on: https://codeberg.org/a-j-wood/pv/pulls/93
2024-07-17 06:36:50 +00:00
Eric A. Borisch
3fdfd07443
Improve description and comments for blocking-write() after select()
2024-07-16 23:39:15 -05:00
Andrew Wood
d801cdd722
Remove spurious strerror() call from debug report.
2024-07-16 22:44:10 +01:00
Andrew Wood
72e5078ce9
Move the MAKE_OUTPUT_NONBLOCKING code to state.c, as it can no longer work in main.c due to accessing internal structures; but still leave it switched off by default for now.
2024-07-16 22:41:31 +01:00
Andrew Wood
a7c3f3dd35
Write the error from write() to the debugging output if nwritten is <0.
2024-07-16 22:23:51 +01:00
Andrew Wood
729fc10674
News item and acknowledgement for zero write bug fix ( #92 ).
2024-07-16 22:03:56 +01:00
Andrew Wood
12f0312b00
Move the "stop at size" option setting to before the size calculation, otherwise if the size calculation tries to override that setting, it cannot do so ( #91 ).
2024-07-16 21:58:47 +01:00
Andrew Wood
8c0e3e9dad
When checking how many bytes were written, place the constant to the left of the equality check to match the rest of the code (this avoids accidental assignment if one equals sign is accidentally written instead of two), and write the appropriate debug message depending on whether the write was interrupted or it was empty.
2024-07-16 21:54:13 +01:00
Andrew Wood
c7104f0c0d
Merge pull request 'src/pv/transfer.c: timer going off returns with total_written==0; which is not an error.' ( #92 ) from eborisch/pv:write-can-return-0 into main
...
Reviewed-on: https://codeberg.org/a-j-wood/pv/pulls/92
2024-07-16 20:47:32 +00:00
Andrew Wood
679638beb2
More details.
2024-07-16 21:42:23 +01:00
Andrew Wood
f8fc5844b1
Re-order the output file descriptor setting and the size detection to correct the problem with output block device size detection that was broken in 1.8.10 ( #91 ).
2024-07-16 21:39:29 +01:00
eborisch
d86d8cf65a
Clarify state.
2024-07-16 03:57:11 +00:00
eborisch
11e5b5fe95
src/pv/transfer.c: write(2) returning 0 is not an error
...
This is being hit easily on FreeBSD with pv sitting in a zfs send/recv pipeline. As write(2) returning 0 is not an error, handle it similar to returning -1 with EINTR or EAGAIN: wait a bit and try again.
2024-07-15 21:36:57 +00:00
Andrew Wood
42b623e9b0
Pre-release version and datestamp updates.
v1.8.10
2024-06-15 23:40:07 +01:00
Andrew Wood
21e65b8742
Relax the strictness of this check a little, to avoid false failures on heavily loaded systems.
2024-06-15 23:11:53 +01:00
Andrew Wood
c6ac4d11be
Added an example of how to list untranslated strings.
2024-06-15 23:00:12 +01:00
Andrew Wood
2d48e07139
Updated the instructions for testing translations, now that a method has been found that actually works.
2024-06-15 22:47:53 +01:00