Skip to content

Changes

Started by upstream project gerrit-libosmocore #2354
Started 5 hr 42 min ago
Queued 7.3 sec
Took 2 min 12 sec on build4-deb12build-ansible

Summary

  1. logging: Support nonblocking-io for log target stderr & file, make it default (details)
Commit 4e9fc589aab66f61689192c213f27edabe7a4a9f by Pau Espin Pedrol
logging: Support nonblocking-io for log target stderr & file, make it default

The nonblocking-io used to be the mode used until recently, where wq
only was used if the write buffer was full.
This is more performant that always waiting for poll() to write, plus
the fact that we write to system synchronously, hence seeing output
immediatelly or not losing it if program crashes.
Furthermore, It turns out using wq in multithreaded programs may cause
problems, so better switch back to using nonblocking-io by default.

Related: OS#6947
Change-Id: I46420f4b174d3a9ed01e993e2e89aea3b46c0dd7
The file was modifiedinclude/osmocom/core/logging.h
The file was modifiedsrc/core/logging_file.c
The file was modifiedsrc/vty/logging_vty.c
The file was modifiedsrc/core/libosmocore.map