Commit Graph

  • 2d8113e0e0 Give up on signal delivery tests Kovid Goyal 2022-07-10 17:41:27 +05:30
  • e881850bb4 ... Kovid Goyal 2022-07-10 17:37:34 +05:30
  • 4cbae1db89 ... Kovid Goyal 2022-07-10 17:33:09 +05:30
  • 97bce7be18 and again Kovid Goyal 2022-07-10 17:30:25 +05:30
  • 5d2a276172 ... Kovid Goyal 2022-07-10 17:25:23 +05:30
  • 762dfe8315 increase timeout since signal delivery on CI is flakey Kovid Goyal 2022-07-10 17:15:30 +05:30
  • 1c0d1ec8a9 wait for child events explicitly Kovid Goyal 2022-07-10 17:11:43 +05:30
  • e650699217 py3.8 compat Kovid Goyal 2022-07-10 16:54:00 +05:30
  • 5ff2b5be1c Clear out any signals before ending test Kovid Goyal 2022-07-10 16:49:14 +05:30
  • f1841d7c81 DRYer Kovid Goyal 2022-07-10 16:34:52 +05:30
  • fd6231a778 Fix signal reading in prewarm wrapper Kovid Goyal 2022-07-10 15:58:40 +05:30
  • 751a52153d Restore python signal handlers properly after the test Kovid Goyal 2022-07-10 15:50:22 +05:30
  • 61b733bae9 Add a test for SIGCHLD on SIGTSTP Kovid Goyal 2022-07-10 14:49:48 +05:30
  • 624e96df9b wrapper process should exit with signal if prewarmed worker exits with signal Kovid Goyal 2022-07-10 14:10:22 +05:30
  • a3f1a44d83 OK I give up I cant get signal delivery to work reliably Kovid Goyal 2022-07-10 13:27:32 +05:30
  • ed1547938e When running tests ensure the signal mask is empty for processes run in the testing pty Kovid Goyal 2022-07-10 13:08:20 +05:30
  • f96a13e9e4 mask handled signals when running signal handler Kovid Goyal 2022-07-10 12:48:42 +05:30
  • 7b70ed96b6 DRYer Kovid Goyal 2022-07-10 12:18:04 +05:30
  • 9379853d47 Get the SIGINT test working on macOS Kovid Goyal 2022-07-10 11:37:40 +05:30
  • 6ccfebd9e3 ... Kovid Goyal 2022-07-10 11:27:02 +05:30
  • 45186a17ca macOS doesnt allow TIOCSWINSZ from any process other than the process connected to the terminal or its parent Kovid Goyal 2022-07-10 10:43:23 +05:30
  • 24bb4585af Allow easily skipping tests when updating on ox Kovid Goyal 2022-07-09 09:42:06 +05:30
  • feb96f1be8 Use O_CLOEXEC for temp ctty fds Kovid Goyal 2022-07-09 06:48:53 +05:30
  • b7d3d64975 Ignore error condition on master fd of testing pty Kovid Goyal 2022-07-09 06:24:37 +05:30
  • 6114b49630 Ensure pty is in utf8 Kovid Goyal 2022-07-08 23:36:03 +05:30
  • 87d95caae0 Dont bother sending slave fd over the socket as it doesnt help on macOS anyway Kovid Goyal 2022-07-08 23:16:44 +05:30
  • 9535bc94ff Use both open and the ioctl to set the controlling terminal Kovid Goyal 2022-07-08 22:30:11 +05:30
  • 0841be7803 Test sigwinch handling Kovid Goyal 2022-07-08 18:31:24 +05:30
  • 6cec89181b dont abort when failing to write to a tty Kovid Goyal 2022-07-08 18:07:42 +05:30
  • cb78e17594 dont break when socket is pre-closed Kovid Goyal 2022-07-08 16:56:35 +05:30
  • 285c399ae5 ... Kovid Goyal 2022-07-08 16:44:29 +05:30
  • c9b14f6f78 Switch to using select() instead of poll() in prewarm wrapper Kovid Goyal 2022-07-08 16:03:11 +05:30
  • 6a101c51d2 Close tty_fd in master on fork() rather than on close() Kovid Goyal 2022-07-08 15:39:23 +05:30
  • 8998970adc Make the socket prewarm test a bit more robust Kovid Goyal 2022-07-07 21:29:16 +05:30
  • 991fbacb99 Fix ttyfd passing Kovid Goyal 2022-07-07 20:30:04 +05:30
  • 72f3e8cd40 Avoid passing around pty paths, instead send the pty fd Kovid Goyal 2022-07-07 20:07:04 +05:30
  • cf8113ea24 Even more flexible management of poll data Kovid Goyal 2022-07-07 16:10:48 +05:30
  • 5d1cf49fb6 Only set control msg metadata when actually sending a control msg Kovid Goyal 2022-07-07 14:16:47 +05:30
  • 90f3c0f9af Workaround macOS weirdness Kovid Goyal 2022-07-07 14:10:33 +05:30
  • d02598688a Show full traceback for failures to fork socket child Kovid Goyal 2022-07-07 14:04:10 +05:30
  • 1991f1ccd7 Better handling of multiple optional to poll fds Kovid Goyal 2022-07-07 13:43:12 +05:30
  • 8fad8972d5 ... Kovid Goyal 2022-07-07 13:36:45 +05:30
  • fc3e78e226 Also handle SIGQUIT Kovid Goyal 2022-07-07 12:45:34 +05:30
  • 15aace29a1 Restore python signal handlers in forked workers Kovid Goyal 2022-07-07 11:51:43 +05:30
  • 12a3a2d7fe Only set switch interval after prewarm fork Kovid Goyal 2022-07-07 11:38:12 +05:30
  • 7e26a340a3 Try to read from child pty even after zygote signals its death Kovid Goyal 2022-07-07 10:05:31 +05:30
  • f0764c24d2 Retry read/write while there is space Kovid Goyal 2022-07-07 09:40:25 +05:30
  • d080bf3b9c Forward termination signals Kovid Goyal 2022-07-07 08:40:17 +05:30
  • 51698dff07 ... Kovid Goyal 2022-07-07 07:47:17 +05:30
  • 4154926be7 Get the test to pass on macOS Kovid Goyal 2022-07-06 13:25:21 +05:30
  • 806ca2b224 Fix atexit handlers being called in forked children Kovid Goyal 2022-07-06 11:09:43 +05:30
  • 92bbf08343 Fix socket connect call on non-linux Kovid Goyal 2022-07-06 08:54:28 +05:30
  • dc84e3de67 Do not hang forever waiting for child death Kovid Goyal 2022-07-05 21:49:49 +05:30
  • 8011801549 re-init openssl PRNG when forking for prewarm Kovid Goyal 2022-07-05 21:42:38 +05:30
  • dfec88ed15 Inherit full outside env Kovid Goyal 2022-07-05 20:59:34 +05:30
  • 5d3e2c7111 ... Kovid Goyal 2022-07-05 20:48:01 +05:30
  • af1c48e0f7 Dont rely on having source of test modules available Kovid Goyal 2022-07-05 20:42:55 +05:30
  • d4bc906c5c Fix launcher build with sanitize Kovid Goyal 2022-07-05 20:35:07 +05:30
  • 62fe467336 ... Kovid Goyal 2022-07-05 20:21:54 +05:30
  • ef3e9d1c2e make various compilers happy Kovid Goyal 2022-07-05 19:59:29 +05:30
  • 09ddbbf600 Finish move of prewarm launcher into its own compilation unit Kovid Goyal 2022-07-05 19:18:36 +05:30
  • 4195c239c8 Start moving prewarm launcher into its own compilation unit Kovid Goyal 2022-07-05 19:18:15 +05:30
  • a6c3c57d40 Test stdio redirection with socket prewarm Kovid Goyal 2022-07-05 18:54:20 +05:30
  • de9263a117 Verify uid/gid of connection from a prewarm client Kovid Goyal 2022-07-05 18:20:32 +05:30
  • 7b7f1ecc54 Add basic tests for socket prewarm Kovid Goyal 2022-07-05 12:49:22 +05:30
  • d1b028c27a Dont pass inherited KITTY_PREWARM_SOCKET Kovid Goyal 2022-07-04 21:44:07 +05:30
  • 055aae2382 Use correct exit codes for signals Kovid Goyal 2022-07-03 22:10:22 +05:30
  • dbb084da7a Cleanup closing of socket child Kovid Goyal 2022-07-03 21:42:34 +05:30
  • 8332cd2f79 Avoid needing to call os.getpid() repeatedly Kovid Goyal 2022-07-03 21:19:29 +05:30
  • 4e29c0c16b Propagate SIGWINCH Kovid Goyal 2022-07-03 20:45:11 +05:30
  • 320d45a3f5 Only use prewarm socket if uid and gid match Kovid Goyal 2022-07-03 15:19:17 +05:30
  • 73795b5257 detect when socket child closes its tty Kovid Goyal 2022-07-03 13:20:53 +05:30
  • 16e59784c6 handle failures to send data over socket gracefully Kovid Goyal 2022-07-03 11:39:35 +05:30
  • 65a7ec3f85 move socket launch handling into its own function Kovid Goyal 2022-07-03 11:33:53 +05:30
  • 360ff35061 Better error logging from prewarm zygote Kovid Goyal 2022-07-03 11:18:06 +05:30
  • 5098792723 Make the tty pipes non-blocking Kovid Goyal 2022-07-03 11:05:14 +05:30
  • a4883e6d41 Transfer data between ttys Kovid Goyal 2022-07-03 10:27:32 +05:30
  • 44c9d66dd4 Use a map for pid -> socketchild Kovid Goyal 2022-07-02 14:02:07 +05:30
  • c7718d078c Fix parsing of child pid and exit code Kovid Goyal 2022-07-02 13:51:30 +05:30
  • 2525994db4 ... Kovid Goyal 2022-07-02 13:29:44 +05:30
  • 81e6afa9b3 Cleanup fd transmit Kovid Goyal 2022-07-02 13:11:54 +05:30
  • d8f5ccf9e4 Make master tty raw and print error messages with more context Kovid Goyal 2022-07-02 12:41:10 +05:30
  • 774489c578 ... Kovid Goyal 2022-07-02 10:15:58 +05:30
  • 39bb0ecfcf more work on socket based prewarm Kovid Goyal 2022-06-23 08:01:34 +05:30
  • b222ab1bf6 Start work on socket based prewarm Kovid Goyal 2022-06-13 21:34:49 +05:30
  • 7a31c7ff50 Start work on everywhere prewarm Kovid Goyal 2022-06-07 20:37:55 +05:30
  • 132f87d152 show_key: use a better representation of the space key when Kovid Goyal 2022-08-01 13:25:56 +05:30
  • aedda4bf9b ... Kovid Goyal 2022-07-31 10:36:03 +05:30
  • 40bba70bfe Wayland IME: Avoid printing errors for compositors that pointlessly acknowledge previous IME commits rather than just the current one. Apparently kwin is one such. Fixes #5339 Kovid Goyal 2022-07-31 10:22:40 +05:30
  • 8202247b27 DRYer Kovid Goyal 2022-07-29 12:51:36 +05:30
  • e2117ee8a4 ssh kitten: Allow completion of ssh options between the destination and command Kovid Goyal 2022-07-29 08:29:49 +05:30
  • e3a4150fea Second draw attempt has single fade edge Kovid Goyal 2022-07-29 08:15:38 +05:30
  • 0ce2a23af3 Allow tab title templates to use the current max title length Kovid Goyal 2022-07-29 07:43:55 +05:30
  • 6b2337c9c0 Merge branch 'master' of https://github.com/newbee1905/kitty-1 Kovid Goyal 2022-07-26 20:27:59 +05:30
  • 54661b7fc4 reflector: replace unecessary while loop newbee1905 2022-07-26 21:47:52 +07:00
  • a1f895b781 Merge branch 'master' of https://github.com/nullchilly/kitty Kovid Goyal 2022-07-26 19:10:34 +05:30
  • 199c271edc Fix modify_font underline_position 1 nullchilly 2022-07-26 20:08:04 +07:00
  • 9ac744ae63 DRYer Kovid Goyal 2022-07-26 16:10:43 +05:30
  • 93b05bcd1e Make the calculation of the bound for underline_position more precise Kovid Goyal 2022-07-26 16:07:01 +05:30
  • 546cdbefae Don't expose all Tab methods in title template Kovid Goyal 2022-07-26 13:13:00 +05:30