mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-18 06:04:49 +00:00
If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.
https://sw.kovidgoyal.net/kitty/
- safe_mkstemp: fix template corruption and atomicity
mkstemp mutates the template in place, causing subsequent retries on
EINTR to fail with EINVAL. Save the template before invocation and use
atomic mkostemp(..., O_CLOEXEC) on supported platforms.
- safe_connect and safe_accept: fix socket connection state machine
- safe_connect: Retrying connect() on EINTR violates stream socket semantics
(yields EISCONN/EALREADY). Poll for POLLOUT and query SO_ERROR instead.
- safe_accept: Remove EAGAIN busy-wait loop to avoid 100% CPU spin on
non-blocking sockets or when timeouts expire.
- safe_write: prevent stream corruption
Comparing ret != 0 caused successful writes (> 0) to repeat whenever
stale EINTR remained in errno, duplicating payload data across PTY and
socket streams. Change check to ret < 0.
- safe_close: eliminate descriptor reuse race
POSIX-compliant modern kernels (Linux, macOS, BSDs) detach and release
file descriptors before handling signal interruptions. Looping close() on
EINTR risks closing an unrelated file descriptor allocated concurrently
by another thread.
|
||
|---|---|---|
| .github | ||
| 3rdparty | ||
| bypy | ||
| docs | ||
| gen | ||
| glad | ||
| glfw | ||
| kittens | ||
| kitty | ||
| kitty_tests | ||
| logo | ||
| shell-integration | ||
| terminfo | ||
| tools | ||
| .clang-format | ||
| .clang-format-for-slang | ||
| .clang-format-ignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| __main__.py | ||
| autoformat | ||
| benchmark.py | ||
| Brewfile | ||
| build-terminfo | ||
| CHANGELOG.rst | ||
| CONTRIBUTING.md | ||
| count-lines-of-code | ||
| dev.sh | ||
| embeds.go | ||
| go.mod | ||
| go.sum | ||
| INSTALL.md | ||
| key_encoding.json | ||
| LICENSE | ||
| local-agent.md | ||
| Makefile | ||
| publish.py | ||
| pyproject.toml | ||
| README.asciidoc | ||
| rsync-and-build.sh | ||
| SECURITY.md | ||
| session.vim | ||
| setup.py | ||
| shell.nix | ||
| staticcheck.conf | ||
| test.py | ||
| update-on-ox | ||
= kitty - the fast, feature-rich, cross-platform, GPU based terminal If you live in the terminal, *kitty* is made for **you**! See https://sw.kovidgoyal.net/kitty/[the kitty website]. image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"] https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions] To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the https://www.reddit.com/r/KittyTerminal[Reddit community] Packaging status in various repositories: image:https://repology.org/badge/vertical-allrepos/kitty-terminal.svg?columns=3&header=kitty["Packaging status", link="https://repology.org/project/kitty-terminal/versions"]