chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journald: make sure the stdout/stderr stream fd is removed from epoll before we close it
[elogind.git]
/
src
/
core
/
manager.c
diff --git
a/src/core/manager.c
b/src/core/manager.c
index 19493861ecdbb0566bac615d53d91650ca88084f..ad4c6e8ed91fdce35495d1a8c752f2d601c1d2b2 100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-22,9
+22,7
@@
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
-#include <sys/epoll.h>
#include <signal.h>
#include <signal.h>
-#include <sys/signalfd.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/poll.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/poll.h>
@@
-428,7
+426,7
@@
static int manager_setup_kdbus(Manager *m) {
return m->kdbus_fd;
}
return m->kdbus_fd;
}
- log_
info
("Successfully set up kdbus on %s", p);
+ log_
debug
("Successfully set up kdbus on %s", p);
#endif
return 0;
#endif
return 0;
@@
-1078,7
+1076,7
@@
int manager_load_unit_prepare(
return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Path %s is not absolute.", path);
if (!name)
return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Path %s is not absolute.", path);
if (!name)
- name =
path_get_file_
name(path);
+ name =
base
name(path);
t = unit_name_to_type(name);
t = unit_name_to_type(name);
@@
-2211,10
+2209,8
@@
int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
}
finish:
}
finish:
- if (ferror(f))
{
+ if (ferror(f))
r = -EIO;
r = -EIO;
- goto finish;
- }
assert(m->n_reloading > 0);
m->n_reloading --;
assert(m->n_reloading > 0);
m->n_reloading --;