mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +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/
Fix problems found while reviewing the EINTR handling changes to safe-wrappers.h merged from PR #10615. - safe_connect: the PR waited for POLLOUT and read SO_ERROR after an EINTR from connect(). That only works for sockets where an interrupted connect continues in the background, such as TCP. AF_UNIX stream sockets on Linux are left unconnected but writable, so safe_connect returned success on an unconnected socket. This broke the single instance launcher when the server's listen backlog was full. Now connect() is retried after EINTR, EISCONN on a retry is treated as success, and poll()+SO_ERROR is used only on EALREADY. While waiting, SO_SNDTIMEO is honored (with a monotonic deadline across EINTR from poll) instead of polling with an infinite timeout. The EAGAIN retry the PR dropped is restored. - safe_mkstemp: rather than copying the template into a PATH_MAX buffer, which rejected templates longer than 1024 bytes on macOS/BSD, restore only the trailing X characters when mkostemp() is interrupted. Use mkostemp(O_CLOEXEC) on all platforms. macOS has had it since 10.12 and disk-cache.c already relied on it. This removes the duplicated platform #if blocks and the racy mkstemp+fcntl(FD_CLOEXEC) fallback. - disk-cache: open_cache_file_without_tmpfile had its own mkostemp EINTR loop with the same template corruption bug. Use safe_mkstemp instead. - Add safe_write_all() and use it in place of the hand-written write loops in dnd.c and the single instance launcher. Also fix finish_remote_data() in dnd.c, which passed -1 instead of errno to abrt() when writing the uri list failed. |
||
|---|---|---|
| .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"]