长连接平滑重启实现

---------------------------------------------------------------------------------------------
                     old process                         new process
send upgrade signal ---> |                                    |
                         |    ----------- fork ----------->   |
                         |                                    | start listen and init finish
                         |    <- send init finish signal --   |
         close listening |                                    |
                         |    send connection state data ->   |
                         |                                    | accept and init finish
                         |    <---- send finish signal ----   |
                    exit |                                    |
---------------------------------------------------------------------------------------------
Use a domain socket to transfer connection state data

上一篇:死锁详解(预防,避免,检测,解除)


下一篇:实现ICEY锁血,修改data文件实现主之名关卡重现,顺便改金币