]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/docs/api/mg_stop.md
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / civetweb / docs / api / mg_stop.md
1 # Civetweb API Reference
2
3 ### `mg_stop( ctx );`
4
5 #### Parameters
6
7 | Parameter | Type | Description |
8 | :--- | :--- | :--- |
9 |**`ctx`**|**`struct mg_context *`**| A pointer to the current webserver context |
10
11 ### Return Value
12
13 *none*
14
15 ### Description
16
17 The function `mg_stop()` is used to stop and cleanup a running webserver. A pointer to the context of the running webserver is provided as a parameter. The execution of this function may take some time because it waits until all threads have stopped and returns all memory to the heap. After the function returns, the location the context pointer points to is invalid. The function does not return a return value and it is therefore not possible to know if stopping the webserver succeeded or not.
18
19 ### See Also
20
21 * [`mg_start();`](mg_start.md)
22 * [`mg_start_thread();`](mg_start_thread.md)