[fabbione/kronosnet] 6e9eed: [logging] rework locking around logging

GitHub noreply at github.com
Fri Jun 17 08:27:41 CEST 2016

  Branch: refs/heads/master
  Home:   https://github.com/fabbione/kronosnet
  Commit: 6e9eed2c23fea29c01de44d20e489aed69828aa9
  Author: Fabio M. Di Nitto <fdinitto at redhat.com>
  Date:   2016-06-17 (Fri, 17 Jun 2016)

  Changed paths:
    M libknet/logging.c

  Log Message:
  [logging] rework locking around logging

make sure to check/fill data after locking and complete write
before release the lock.

also use trylock vs lock since most log are called while already
locked and it's cleaner.

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>

More information about the Commits mailing list