mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
Merge (¾ of) pull request #5596 from matijaskala/master
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <xlocale.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "extract-word.h"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
***/
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/sockios.h>
|
||||
|
||||
#include "sd-lldp.h"
|
||||
|
||||
|
||||
@@ -161,8 +161,8 @@ void pager_close(void) {
|
||||
return;
|
||||
|
||||
/* Inform pager that we are done */
|
||||
stdout = safe_fclose(stdout);
|
||||
stderr = safe_fclose(stderr);
|
||||
safe_fclose(stdout);
|
||||
safe_fclose(stderr);
|
||||
|
||||
(void) kill(pager_pid, SIGCONT);
|
||||
(void) wait_for_terminate(pager_pid, NULL);
|
||||
|
||||
@@ -69,7 +69,7 @@ typedef int (*sd_event_handler_t)(sd_event_source *s, void *userdata);
|
||||
typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
|
||||
typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
|
||||
typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);
|
||||
#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
|
||||
#if defined _GNU_SOURCE || _POSIX_C_SOURCE >= 199309L
|
||||
typedef int (*sd_event_child_handler_t)(sd_event_source *s, const siginfo_t *si, void *userdata);
|
||||
#else
|
||||
typedef void* sd_event_child_handler_t;
|
||||
|
||||
Reference in New Issue
Block a user