Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5134 segmentfault #5138

Merged
merged 4 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
replace free_pipe_buffers to release_pipe_buffers
  • Loading branch information
NathanFreeman committed Aug 27, 2023
commit ae9d4168c05ff32af3f0a83f2d5fc1bf233e6652
1 change: 0 additions & 1 deletion include/swoole_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ class Server {
}

int create_pipe_buffers();
void free_pipe_buffers();
void release_pipe_buffers();
void create_worker(Worker *worker);
void destroy_worker(Worker *worker);
Expand Down
4 changes: 2 additions & 2 deletions src/server/master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ void Server::destroy() {
join_reactor_thread();
}

free_pipe_buffers();
release_pipe_buffers();

for (auto port : ports) {
port->close();
Expand Down Expand Up @@ -2015,7 +2015,7 @@ int Server::create_pipe_buffers() {
return message_bus.alloc_buffer() ? SW_OK : SW_ERR;
}

void Server::free_pipe_buffers() {
void Server::release_pipe_buffers() {
message_bus.free_buffer();
}

Expand Down
Loading