diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-08-29 02:59:35 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-08-29 02:59:35 +0300 |
commit | 9d487df10df5000a84c9c1a75fff0cff525d4454 (patch) | |
tree | 68096193339f4a25bfac7d79f5c0a218f74bec7b /src/nginext/port.go | |
parent | 946867febe29568418bfa146518ff7f97072dd67 (diff) | |
download | unit-9d487df10df5000a84c9c1a75fff0cff525d4454.tar.gz unit-9d487df10df5000a84c9c1a75fff0cff525d4454.tar.bz2 |
The master process has been renamed to the main process.
Diffstat (limited to 'src/nginext/port.go')
-rw-r--r-- | src/nginext/port.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |