diff --git a/Sources/Backtrace/Backtrace.swift b/Sources/Backtrace/Backtrace.swift index 9d08f2e..1baaf08 100644 --- a/Sources/Backtrace/Backtrace.swift +++ b/Sources/Backtrace/Backtrace.swift @@ -64,6 +64,7 @@ private let errorCallback: CBacktraceErrorCallback? = { private func printBacktrace(signal: CInt) { _ = fputs("Received signal \(signal). Backtrace:\n", stderr) backtrace_full(state, /* skip */ 0, fullCallback, errorCallback, nil) + fflush(stderr) } public enum Backtrace {