summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-11 18:04:04 +0300
committerMax Romanov <max.romanov@nginx.com>2017-08-11 18:04:04 +0300
commite1e808bd94609c80b4990939285d47f124bb2eef (patch)
tree6eea54a1ba52bd0cb3687f3c8d46399cb06ab227 /src/nxt_port.h
parent162afe4719afcba65b5477a75cee4cbba8874892 (diff)
downloadunit-e1e808bd94609c80b4990939285d47f124bb2eef.tar.gz
unit-e1e808bd94609c80b4990939285d47f124bb2eef.tar.bz2
Sync flag introduced for port type.
To avoid transfer mmap_msg before new mmap message.
Diffstat (limited to 'src/nxt_port.h')
-rw-r--r--src/nxt_port.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h
index 90e88a68..3f584e9f 100644
--- a/src/nxt_port.h
+++ b/src/nxt_port.h
@@ -11,6 +11,7 @@
typedef enum {
NXT_PORT_MSG_LAST = 0x100,
NXT_PORT_MSG_CLOSE_FD = 0x200,
+ NXT_PORT_MSG_SYNC = 0x400,
NXT_PORT_MSG_MASK = 0xFF,
@@ -32,7 +33,7 @@ typedef enum {
NXT_PORT_MSG_NEW_PORT = _NXT_PORT_MSG_NEW_PORT | NXT_PORT_MSG_LAST,
NXT_PORT_MSG_CHANGE_FILE = _NXT_PORT_MSG_CHANGE_FILE | NXT_PORT_MSG_LAST,
NXT_PORT_MSG_MMAP = _NXT_PORT_MSG_MMAP | NXT_PORT_MSG_LAST |
- NXT_PORT_MSG_CLOSE_FD,
+ NXT_PORT_MSG_CLOSE_FD | NXT_PORT_MSG_SYNC,
NXT_PORT_MSG_DATA = _NXT_PORT_MSG_DATA,
NXT_PORT_MSG_DATA_LAST = _NXT_PORT_MSG_DATA | NXT_PORT_MSG_LAST,
NXT_PORT_MSG_REMOVE_PID = _NXT_PORT_MSG_REMOVE_PID | NXT_PORT_MSG_LAST,
@@ -66,6 +67,7 @@ typedef struct {
size_t share;
nxt_fd_t fd;
nxt_bool_t close_fd;
+ nxt_bool_t opened;
nxt_port_msg_t port_msg;
nxt_work_t work;