mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
...
This commit is contained in:
@@ -214,7 +214,7 @@ wakeup(ChildMonitor UNUSED *self) {
|
|||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
add_child(ChildMonitor *self, PyObject *args) {
|
add_child(ChildMonitor *self, PyObject *args) {
|
||||||
#define add_child_doc "add_child(id, fd, screen) -> Add a child."
|
#define add_child_doc "add_child(id, pid, fd, screen) -> Add a child."
|
||||||
children_mutex(lock);
|
children_mutex(lock);
|
||||||
if (self->count + add_queue_count >= MAX_CHILDREN) { PyErr_SetString(PyExc_ValueError, "Too many children"); children_mutex(unlock); return NULL; }
|
if (self->count + add_queue_count >= MAX_CHILDREN) { PyErr_SetString(PyExc_ValueError, "Too many children"); children_mutex(unlock); return NULL; }
|
||||||
add_queue[add_queue_count] = EMPTY_CHILD;
|
add_queue[add_queue_count] = EMPTY_CHILD;
|
||||||
|
|||||||
Reference in New Issue
Block a user