mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-29 20:32:38 +00:00
Fix reading of dead prewarmed child pids
This commit is contained in:
parent
5d1cf339a7
commit
a385c39c2e
1 changed files with 1 additions and 1 deletions
|
|
@ -1319,7 +1319,7 @@ reap_prewarmed_children(ChildMonitor *self, int fd, bool enable_close_on_child_d
|
|||
buf_pos += len;
|
||||
char *nl;
|
||||
while (buf_pos > 1 && (nl = memchr(buf, '\n', buf_pos)) != NULL) {
|
||||
size_t sz = nl - buf;
|
||||
size_t sz = nl - buf + 1;
|
||||
if (enable_close_on_child_death) {
|
||||
*nl = 0;
|
||||
int pid = atoi(buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue