Skip to content

touch/cp: don't hang preserving timestamps on a FIFO#12758

Open
sylvestre wants to merge 3 commits into
uutils:mainfrom
sylvestre:fifo-utimensat-no-hang
Open

touch/cp: don't hang preserving timestamps on a FIFO#12758
sylvestre wants to merge 3 commits into
uutils:mainfrom
sylvestre:fifo-utimensat-no-hang

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

No description provided.

@sylvestre sylvestre force-pushed the fifo-utimensat-no-hang branch from 1a9781b to 9af2726 Compare June 10, 2026 17:40
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/date/resolution (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/cp/preserve-mode is no longer failing!
Congrats! The gnu test tests/misc/selinux is no longer failing!
Skip an intermittent issue tests/pr/bounded-memory (was skipped on 'main', now failing)

@codspeed-hq

codspeed-hq Bot commented Jun 10, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 331 untouched benchmarks
⏩ 46 skipped benchmarks1


Comparing sylvestre:fifo-utimensat-no-hang (75677d8) with main (51529dc)

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@sylvestre sylvestre force-pushed the fifo-utimensat-no-hang branch from 9af2726 to a42d3f1 Compare June 10, 2026 18:33
sylvestre added 3 commits July 4, 2026 13:55
filetime::set_file_times opens the file before setting times, which blocks
forever on a FIFO with no writer. Add uucore::fs::set_file_times using a
path-based utimensat (like GNU), shared by cp and touch.
Use uucore::fs::set_file_times instead of filetime::set_file_times, which
opens the destination first and so blocks forever on a FIFO with no writer.

Should make test tests/cp/preserve-mode.sh pass
Use uucore::fs::set_file_times instead of filetime, which opens the target
first and so blocks forever on a FIFO with no writer.

Should make test tests/touch/fifo.sh pass
@sylvestre sylvestre force-pushed the fifo-utimensat-no-hang branch from a42d3f1 to 75677d8 Compare July 4, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant