Kovid Goyal
|
dda28efd66
|
Use the same signal to stop as stopped the child
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
b78183972c
|
Report child stop to wrapper process
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
fc06196a3e
|
Restore termios state when stopping
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
2a1809a2d8
|
When exiting with a signal run cleanup
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
ac5c312267
|
Work on handling child stop events
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
8f3174038b
|
Fix running of test suite inside kitty
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
2d8113e0e0
|
Give up on signal delivery tests
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
e881850bb4
|
...
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
4cbae1db89
|
...
|
2022-08-01 19:03:02 +05:30 |
|
Kovid Goyal
|
97bce7be18
|
and again
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
5d2a276172
|
...
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
762dfe8315
|
increase timeout since signal delivery on CI is flakey
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
1c0d1ec8a9
|
wait for child events explicitly
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
e650699217
|
py3.8 compat
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
5ff2b5be1c
|
Clear out any signals before ending test
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
f1841d7c81
|
DRYer
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
fd6231a778
|
Fix signal reading in prewarm wrapper
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
751a52153d
|
Restore python signal handlers properly after the test
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
61b733bae9
|
Add a test for SIGCHLD on SIGTSTP
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
624e96df9b
|
wrapper process should exit with signal if prewarmed worker exits with signal
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
a3f1a44d83
|
OK I give up I cant get signal delivery to work reliably
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
ed1547938e
|
When running tests ensure the signal mask is empty for processes run in the testing pty
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
f96a13e9e4
|
mask handled signals when running signal handler
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
7b70ed96b6
|
DRYer
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
9379853d47
|
Get the SIGINT test working on macOS
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
6ccfebd9e3
|
...
|
2022-08-01 19:03:01 +05:30 |
|
Kovid Goyal
|
45186a17ca
|
macOS doesnt allow TIOCSWINSZ from any process other than the process connected to the terminal or its parent
So send it over the socket to the zygote and have it resize the
terminal. Sigh.
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
24bb4585af
|
Allow easily skipping tests when updating on ox
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
feb96f1be8
|
Use O_CLOEXEC for temp ctty fds
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
b7d3d64975
|
Ignore error condition on master fd of testing pty
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
6114b49630
|
Ensure pty is in utf8
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
87d95caae0
|
Dont bother sending slave fd over the socket as it doesnt help on macOS anyway
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
9535bc94ff
|
Use both open and the ioctl to set the controlling terminal
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
0841be7803
|
Test sigwinch handling
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
6cec89181b
|
dont abort when failing to write to a tty
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
cb78e17594
|
dont break when socket is pre-closed
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
285c399ae5
|
...
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
c9b14f6f78
|
Switch to using select() instead of poll() in prewarm wrapper
This is because poll() is broken on macOS with pty fds
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
6a101c51d2
|
Close tty_fd in master on fork() rather than on close()
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
8998970adc
|
Make the socket prewarm test a bit more robust
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
991fbacb99
|
Fix ttyfd passing
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
72f3e8cd40
|
Avoid passing around pty paths, instead send the pty fd
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
cf8113ea24
|
Even more flexible management of poll data
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
5d1cf49fb6
|
Only set control msg metadata when actually sending a control msg
|
2022-08-01 19:03:00 +05:30 |
|
Kovid Goyal
|
90f3c0f9af
|
Workaround macOS weirdness
|
2022-08-01 19:02:59 +05:30 |
|
Kovid Goyal
|
d02598688a
|
Show full traceback for failures to fork socket child
|
2022-08-01 19:02:59 +05:30 |
|
Kovid Goyal
|
1991f1ccd7
|
Better handling of multiple optional to poll fds
|
2022-08-01 19:02:59 +05:30 |
|
Kovid Goyal
|
8fad8972d5
|
...
|
2022-08-01 19:02:59 +05:30 |
|
Kovid Goyal
|
fc3e78e226
|
Also handle SIGQUIT
|
2022-08-01 19:02:59 +05:30 |
|
Kovid Goyal
|
15aace29a1
|
Restore python signal handlers in forked workers
|
2022-08-01 19:02:59 +05:30 |
|