Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Liam reported a problem when trying to restart wasm-wasi-component based applications using the /control/applications/APPLICATION_NAME/restart endpoint. The application would become unresponsive. What was happening was the old application process(es) weren't exit(2)ing and so while we were starting new application processes, the old ones were still hanging around in a non-functioning state. When we are terminating an application it must call exit(2). So that's what we do. We want to use the standard EXIT_SUCCESS mnemonic, which in rust is available in external crates such as libc, however rather than bringing in a whole nother crate just for this, we just define it locally ourselves. Reported-by: Liam Crilly <liam@nginx.com> Fixes: 20ada4b ("Wasm-wc: Core of initial Wasm component model language module support") Closes: #1179 Tested-by: Liam Crilly <liam@nginx.com> Tested-by: Danielle De Leo <d.deleo@f5.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
- Loading branch information