diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-10-19 17:36:45 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-10-19 17:36:45 +0300 |
commit | 6fd465f9d24040946f4218c281bd82517d5a350c (patch) | |
tree | affe30b3da0ad8844d646d640dc6fb4ff8f89e0e /src/nxt_port_memory_int.h | |
parent | 39fd38a948762d24f5860adb0bf8c78b6d65d79a (diff) | |
download | unit-6fd465f9d24040946f4218c281bd82517d5a350c.tar.gz unit-6fd465f9d24040946f4218c281bd82517d5a350c.tar.bz2 |
Introducing src_pid for mmap header for accurate buf completion.
This allows to use shared memory to communicate with main process.
This patch changes shared memory segment format and breaks compatibility
with older modules.
Diffstat (limited to 'src/nxt_port_memory_int.h')
-rw-r--r-- | src/nxt_port_memory_int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_port_memory_int.h b/src/nxt_port_memory_int.h index 3c6c6ac6..6ccc3d83 100644 --- a/src/nxt_port_memory_int.h +++ b/src/nxt_port_memory_int.h @@ -48,7 +48,8 @@ typedef nxt_atomic_uint_t nxt_free_map_t; /* Mapped at the start of shared memory segment. */ struct nxt_port_mmap_header_s { uint32_t id; - nxt_pid_t pid; /* For sanity check. */ + nxt_pid_t src_pid; /* For sanity check. */ + nxt_pid_t dst_pid; /* For sanity check. */ nxt_port_id_t sent_over; nxt_free_map_t free_map[MAX_FREE_IDX]; }; |