more work on socket based prewarm

This commit is contained in:
Kovid Goyal
2022-08-01 19:02:57 +05:30
parent b222ab1bf6
commit 39bb0ecfcf
4 changed files with 290 additions and 9 deletions
+2
View File
@@ -249,6 +249,8 @@ class Child:
env['TERM'] = fast_data_types.get_options().term
env['COLORTERM'] = 'truecolor'
env['KITTY_PID'] = getpid()
if not self.is_prewarmed:
env['KITTY_PREWARM_SOCKET'] = fast_data_types.get_boss().prewarm.unix_socket_name
if self.cwd:
# needed in case cwd is a symlink, in which case shells
# can use it to display the current directory name rather