Added basic port error handler.

This commit is contained in:
Max Romanov
2017-08-02 13:36:29 +03:00
parent f23f985899
commit b150f07e80
8 changed files with 81 additions and 40 deletions

View File

@@ -118,6 +118,9 @@ struct nxt_port_s {
nxt_process_type_t type;
nxt_work_t work;
struct iovec *iov;
void *mmsg_buf;
};
@@ -140,7 +143,7 @@ typedef union {
} nxt_port_data_t;
nxt_port_t *nxt_port_new(nxt_port_id_t id, nxt_pid_t pid,
nxt_port_t *nxt_port_new(nxt_task_t *task, nxt_port_id_t id, nxt_pid_t pid,
nxt_process_type_t type);
nxt_bool_t nxt_port_release(nxt_port_t *port);