summaryrefslogtreecommitdiffhomepage
path: root/src/nginext
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-29 02:59:35 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-29 02:59:35 +0300
commit9d487df10df5000a84c9c1a75fff0cff525d4454 (patch)
tree68096193339f4a25bfac7d79f5c0a218f74bec7b /src/nginext
parent946867febe29568418bfa146518ff7f97072dd67 (diff)
downloadunit-9d487df10df5000a84c9c1a75fff0cff525d4454.tar.gz
unit-9d487df10df5000a84c9c1a75fff0cff525d4454.tar.bz2
The master process has been renamed to the main process.
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)