summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-internal.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-06-27 01:55:48 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-16 18:09:48 +0200
commita65f06bb27688a6738f2f94b7f055f4c66768d63 (patch)
treea7095fe1962bb0c94f43899a5b94e49420651135 /src/journal/journal-internal.h
parenttest-tables: allow sparse tables and check mapping for -1 (diff)
downloadsystemd-a65f06bb27688a6738f2f94b7f055f4c66768d63.tar.xz
systemd-a65f06bb27688a6738f2f94b7f055f4c66768d63.zip
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 'src/journal/journal-internal.h')
-rw-r--r--src/journal/journal-internal.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/journal/journal-internal.h b/src/journal/journal-internal.h
index 5b717f86f7..5bc653537c 100644
--- a/src/journal/journal-internal.h
+++ b/src/journal/journal-internal.h
@@ -97,8 +97,6 @@ struct Directory {
};
struct sd_journal {
- int flags;
-
char *path;
Hashmap *files;
@@ -109,27 +107,29 @@ struct sd_journal {
JournalFile *current_file;
uint64_t current_field;
- Hashmap *directories_by_path;
- Hashmap *directories_by_wd;
-
- int inotify_fd;
-
Match *level0, *level1, *level2;
+ pid_t original_pid;
+
+ int inotify_fd;
unsigned current_invalidate_counter, last_invalidate_counter;
+ usec_t last_process_usec;
char *unique_field;
JournalFile *unique_file;
uint64_t unique_offset;
+ int flags;
+
bool on_network;
bool no_new_files;
size_t data_threshold;
- Set *errors;
+ Hashmap *directories_by_path;
+ Hashmap *directories_by_wd;
- usec_t last_process_usec;
+ Set *errors;
};
char *journal_make_match_string(sd_journal *j);