diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-13 17:23:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-13 17:23:33 +0200 |
commit | 18438f262c60823ad01bf88b7a8a326c3e8b511d (patch) | |
tree | 1ad6aa4c93400a77eeeb8e70e54df4abb5aa52ac /src/journal/journald-stream.c | |
parent | c7e2496a2194557c8c52317209d1020dee845117 (diff) | |
parent | 37b7affefde5443680d73642a990ce86776e28af (diff) |
Merge pull request #1542 from keszybz/journal-audit-optional
Make journald audit socket maskable
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r-- | src/journal/journald-stream.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 69e2d41863..cbdaa3b888 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -627,7 +627,7 @@ static int stdout_stream_restore(Server *s, const char *fname, int fd) { return 0; } -static int server_restore_streams(Server *s, FDSet *fds) { +int server_restore_streams(Server *s, FDSet *fds) { _cleanup_closedir_ DIR *d = NULL; struct dirent *de; int r; @@ -681,7 +681,7 @@ fail: return log_error_errno(errno, "Failed to read streams directory: %m"); } -int server_open_stdout_socket(Server *s, FDSet *fds) { +int server_open_stdout_socket(Server *s) { int r; assert(s); @@ -717,8 +717,5 @@ int server_open_stdout_socket(Server *s, FDSet *fds) { if (r < 0) return log_error_errno(r, "Failed to adjust priority of stdout server event source: %m"); - /* Try to restore streams, but don't bother if this fails */ - (void) server_restore_streams(s, fds); - return 0; } |