Skip to content

Commit

Permalink
doc: qblog.h: note qb_log_format_set vs. fork interaction wrt. PIDs
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pokorný <[email protected]>
  • Loading branch information
jnpkrn committed Jul 20, 2017
1 parent 7067145 commit ab8d4db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/qb/qblog.h
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,14 @@ void qb_log_tags_stringify_fn_set(qb_log_tags_stringify_fn fn);
* %H hostname
*
* Any number between % and character specify field length to pad or chop.
*
* @note Some of the fields are immediately evaluated and remembered
* for performance reasons, so when there's an objective for log
* messages to carry PIDs (not in the default setup) and, moreover,
* precisely, this function needs to be reinvoked upon @c fork
* (@c clone) in the respective children. When already linking
* to @c libpthread, @c pthread_atfork callback registration
* could be useful.
*/
void qb_log_format_set(int32_t t, const char* format);

Expand Down

0 comments on commit ab8d4db

Please sign in to comment.