Skip to content

Commit

Permalink
Merge branch 'make-unix-signal-handler-signal-safe-des-1442'
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Nov 26, 2024
2 parents 77a2647 + 853c849 commit a11f659
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 131 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ See [this](Release.md) for instructions on how to make a new release.
interface UDS socket to users in the specified group. This means that only users in that group can
use the CLI and GUI. By default, everyone has access to the socket.

* `MULLVAD_BACKTRACE_ON_FAULT` - When enabled, if the daemon encounters a fault (e.g. `SIGSEGV`),
it will log a backtrace to stdout, and to `daemon.log`. By default, this is disabled in
release-builds and enabled in debug-builds. Set variable to `1` or `0` to explicitly enable or
disable this feature. Logging the backtrace cause heap allocation. Allocation is not signal safe,
but here it runs in the signal handler. This in technically undefined behavior and therefore
disabled by default. This usually works, but enable at your own risk.

### Development builds only

* `MULLVAD_API_HOST` - Set the hostname to use in API requests. E.g. `api.mullvad.net`.
Expand Down
2 changes: 1 addition & 1 deletion mullvad-daemon/src/exception_logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ pub use win::enable;
mod unix;

#[cfg(unix)]
pub use unix::enable;
pub use unix::{enable, set_log_file};
Loading

0 comments on commit a11f659

Please sign in to comment.