Projeto-Pindorama / heirloom-ng

A collection of standard Unix utilities that is intended to provide maximum compatibility with traditional Unix while incorporating additional features necessary today.
http://heirloom-ng.pindorama.dob.jp
Other
24 stars 7 forks source link

Implement a ``timeout`` utility #36

Closed takusuman closed 5 months ago

takusuman commented 6 months ago

Just to formalize the https://github.com/Projeto-Pindorama/heirloom-ng/tree/timeout-impl branch.

arthurbacci commented 6 months ago

It may be better to use pull request drafts for the next ones. I don't know exactly how they work but I suppose they're made for this.

takusuman commented 6 months ago

It may be better to use pull request drafts for the next ones. I don't know exactly how they work but I suppose they're made for this.

I haven't thought about this when I created this issue. Let it for the next opportunity.

arthurbacci commented 6 months ago

https://github.com/arthurbacci/suspicious-tools/blob/master/timeout/timeout.c

May be interesting.

takusuman commented 6 months ago

I will take a deeper look at it later; OpenBSD's also.

arthurbacci commented 6 months ago

Toybox also seems to have an implementation.

takusuman commented 5 months ago

Almost done as per 319c637, just need some fixes in the second interval implementation.

arthurbacci commented 5 months ago

Please request me a full code review before merging

takusuman commented 5 months ago

Timeout will close the "20230503" era, along with seq and watch. 20240220 FTW

takusuman commented 5 months ago

Please request me a full code review before merging

Sure.