| 379 | |
| 380 | |
| 381 | Master::~Master() |
| 382 | { |
| 383 | // Remove any libprocess authorization callbacks that were installed. |
| 384 | if (authorizationCallbacksSet) { |
| 385 | process::http::authorization::unsetCallbacks(); |
| 386 | } |
| 387 | |
| 388 | // NOTE: Authenticators' lifetimes are tied to libprocess's lifetime. |
| 389 | // This means that multiple masters in tests are not supported. |
| 390 | process::http::authentication::unsetAuthenticator( |
| 391 | master::READONLY_HTTP_AUTHENTICATION_REALM); |
| 392 | process::http::authentication::unsetAuthenticator( |
| 393 | master::READWRITE_HTTP_AUTHENTICATION_REALM); |
| 394 | |
| 395 | process::terminate(pid); |
| 396 | process::wait(pid); |
| 397 | } |
| 398 | |
| 399 | |
| 400 | process::Owned<MasterDetector> Master::createDetector() |
nothing calls this directly
no test coverage detected