diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-06-26 19:55:48 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-16 12:09:48 -0400 |
commit | a65f06bb27688a6738f2f94b7f055f4c66768d63 (patch) | |
tree | a7095fe1962bb0c94f43899a5b94e49420651135 /man | |
parent | daabe5491ee0c78b735336c9e69b7f6ea57464e0 (diff) |
journal: return -ECHILD after a fork
A few asserts are replaced with 'return -EINVAL'. I think that
assert should not be used to check argument in public functions.
Fields in struct sd_journal are rearranged to make it less
swiss-cheesy.
Diffstat (limited to 'man')
-rw-r--r-- | man/sd_journal_open.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man/sd_journal_open.xml b/man/sd_journal_open.xml index eae851e731..28d164add7 100644 --- a/man/sd_journal_open.xml +++ b/man/sd_journal_open.xml @@ -131,6 +131,13 @@ can be rotated at any moment, and the opening of specific files is inherently racy.</para> + <para><varname>sd_journal</varname> objects cannot be + used in the child after a fork. Functions which take a + journal object as an argument + (<function>sd_journal_next()</function> and others) + will return <constant>-ECHILD</constant> after a fork. + </para> + <para><function>sd_journal_close()</function> will close the journal context allocated with <function>sd_journal_open()</function> or |