mirror of
https://github.com/systemd/systemd
synced 2025-09-29 08:44:45 +02:00
Compare commits
No commits in common. "23afa884d4f3bcd97160a893816f9ba170f62ad4" and "e327382877eb2d39db27b268923887d5aae1c286" have entirely different histories.
23afa884d4
...
e327382877
@ -2387,10 +2387,6 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
|
|||||||
n = recvmsg_safe(m->notify_fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC|MSG_TRUNC);
|
n = recvmsg_safe(m->notify_fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC|MSG_TRUNC);
|
||||||
if (IN_SET(n, -EAGAIN, -EINTR))
|
if (IN_SET(n, -EAGAIN, -EINTR))
|
||||||
return 0; /* Spurious wakeup, try again */
|
return 0; /* Spurious wakeup, try again */
|
||||||
if (n == -EXFULL) {
|
|
||||||
log_warning("Got message with truncated control data (too many fds sent?), ignoring.");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
/* If this is any other, real error, then let's stop processing this socket. This of course
|
/* If this is any other, real error, then let's stop processing this socket. This of course
|
||||||
* means we won't take notification messages anymore, but that's still better than busy
|
* means we won't take notification messages anymore, but that's still better than busy
|
||||||
|
@ -3995,10 +3995,6 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
|
|||||||
n = recvmsg_safe(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC);
|
n = recvmsg_safe(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC);
|
||||||
if (IN_SET(n, -EAGAIN, -EINTR))
|
if (IN_SET(n, -EAGAIN, -EINTR))
|
||||||
return 0;
|
return 0;
|
||||||
if (n == -EXFULL) {
|
|
||||||
log_warning("Got message with truncated control data (too many fds sent?), ignoring.");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
return log_warning_errno(n, "Couldn't read notification socket: %m");
|
return log_warning_errno(n, "Couldn't read notification socket: %m");
|
||||||
|
|
||||||
|
@ -943,10 +943,6 @@ int ask_password_agent(
|
|||||||
n = recvmsg_safe(socket_fd, &msghdr, 0);
|
n = recvmsg_safe(socket_fd, &msghdr, 0);
|
||||||
if (IN_SET(n, -EAGAIN, -EINTR))
|
if (IN_SET(n, -EAGAIN, -EINTR))
|
||||||
continue;
|
continue;
|
||||||
if (n == -EXFULL) {
|
|
||||||
log_debug("Got message with truncated control data, ignoring.");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
r = (int) n;
|
r = (int) n;
|
||||||
goto finish;
|
goto finish;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "fd-util.h"
|
#include "fd-util.h"
|
||||||
#include "main-func.h"
|
|
||||||
#include "memory-util.h"
|
#include "memory-util.h"
|
||||||
#include "random-util.h"
|
#include "random-util.h"
|
||||||
#include "sort-util.h"
|
#include "sort-util.h"
|
||||||
@ -1006,4 +1005,17 @@ work:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_MAIN_FUNCTION(run);
|
int main(int argc, char *argv[]) {
|
||||||
|
int r;
|
||||||
|
|
||||||
|
log_set_target(LOG_TARGET_AUTO);
|
||||||
|
udev_parse_config();
|
||||||
|
log_parse_environment();
|
||||||
|
log_open();
|
||||||
|
|
||||||
|
r = run(argc, argv);
|
||||||
|
|
||||||
|
log_close();
|
||||||
|
|
||||||
|
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
@ -692,7 +692,7 @@ get_ldpath() {
|
|||||||
install_missing_libraries() {
|
install_missing_libraries() {
|
||||||
# install possible missing libraries
|
# install possible missing libraries
|
||||||
for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/{,tests/{,manual/,unsafe/}}*; do
|
for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/{,tests/{,manual/,unsafe/}}*; do
|
||||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(get_ldpath $i)" inst_libs $i
|
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(get_ldpath $i):$(get_ldpath $i)/src/udev" inst_libs $i
|
||||||
done
|
done
|
||||||
|
|
||||||
# A number of dependencies is now optional via dlopen, so the install
|
# A number of dependencies is now optional via dlopen, so the install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user