mirror of
https://github.com/upa/mscp.git
synced 2026-02-21 06:34:43 +08:00
fix: when msg_fd is 0, use STDOUT_FILENO
This commit is contained in:
@@ -175,6 +175,7 @@ static PyObject *wrap_mscp_init(PyObject *sef, PyObject *args, PyObject *kw)
|
||||
|
||||
i->m = mscp_init(remote, direction, &i->mo, &i->so);
|
||||
if (!i->m) {
|
||||
PyErr_Format(PyExc_RuntimeError, "%s", mscp_get_error());
|
||||
free(i);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user