summaryrefslogtreecommitdiffhomepage
path: root/src/nginext
diff options
context:
space:
mode:
Diffstat (limited to 'src/nginext')
-rw-r--r--src/nginext/nxt_go_lib.c2
-rw-r--r--src/nginext/port.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/nginext/nxt_go_lib.c b/src/nginext/nxt_go_lib.c
index 6d5d2a03..474d313b 100644
--- a/src/nginext/nxt_go_lib.c
+++ b/src/nginext/nxt_go_lib.c
@@ -179,7 +179,7 @@ nxt_go_ready()
port_msg.last = 1;
port_msg.mmap = 0;
- nxt_go_master_send(&port_msg, sizeof(port_msg), NULL, 0);
+ nxt_go_main_send(&port_msg, sizeof(port_msg), NULL, 0);
}
diff --git a/src/nginext/port.go b/src/nginext/port.go
index 639b73d5..26ca26d2 100644
--- a/src/nginext/port.go
+++ b/src/nginext/port.go
@@ -63,7 +63,7 @@ func remove_by_pid(pid int) {
port_registry_.Unlock()
}
-func master_port() *port {
+func main_port() *port {
port_registry_.RLock()
res := port_registry_.t[1]
port_registry_.RUnlock()
@@ -143,9 +143,9 @@ func nxt_go_port_send(pid C.int, id C.int, buf unsafe.Pointer, buf_size C.int, o
return 0
}
-//export nxt_go_master_send
-func nxt_go_master_send(buf unsafe.Pointer, buf_size C.int, oob unsafe.Pointer, oob_size C.int) C.int {
- p := master_port()
+//export nxt_go_main_send
+func nxt_go_main_send(buf unsafe.Pointer, buf_size C.int, oob unsafe.Pointer, oob_size C.int) C.int {
+ p := main_port()
if p != nil {
n, oobn, err := p.snd.WriteMsgUnix(C.GoBytes(buf, buf_size), C.GoBytes(oob, oob_size), nil)