Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #167 to avoid race on Linux. #177

Merged
merged 1 commit into from Nov 16, 2023
Merged

Revert #167 to avoid race on Linux. #177

merged 1 commit into from Nov 16, 2023

Conversation

creack
Copy link
Owner

@creack creack commented Nov 9, 2023

cc @sio I am reverting the nonblock PR, it causes a race on Linux, randomly blocking on read/write and randomly failing to set/get size.

Adding -count=100 to the test consistently reproduces the issue. Using .Fd() fixes the issue.

I would rather keep your changes and avoid .Fd(), but it would need to work consistently, if you have any idea, let me know.

cc @kr if you have any ideas too.

@creack creack merged commit 3194d69 into master Nov 16, 2023
5 checks passed
@creack creack deleted the revert-nonblock-ioctl branch November 16, 2023 15:21
renovate bot added a commit to kairos-io/provider-kairos that referenced this pull request Dec 13, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/creack/pty](https://togithub.com/creack/pty) | require |
patch | `v1.1.20` -> `v1.1.21` |

---

### Release Notes

<details>
<summary>creack/pty (github.com/creack/pty)</summary>

### [`v1.1.21`](https://togithub.com/creack/pty/releases/tag/v1.1.21)

[Compare
Source](https://togithub.com/creack/pty/compare/v1.1.20...v1.1.21)

#### What's Changed

- Tests cleanup by [@&#8203;creack](https://togithub.com/creack) in
[creack/pty#173
- Revert [#&#8203;167](https://togithub.com/creack/pty/issues/167) to
avoid race on Linux. by [@&#8203;creack](https://togithub.com/creack) in
[creack/pty#177

**Full Changelog**:
creack/pty@v1.1.20...v1.1.21

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am
every weekday,every weekend" in timezone Europe/Brussels, Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

1 participant