From 6fd465f9d24040946f4218c281bd82517d5a350c Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 19 Oct 2017 17:36:45 +0300 Subject: 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. --- src/nxt_port_memory_int.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nxt_port_memory_int.h') 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]; }; -- cgit