chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement new utility functions strstrip() and file_in_same_dir()
[elogind.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index 1954259b508308b8f8c6dd32eee0c03708e2412a..68a4d812d6f6956b989a762ca36c9b17071084b5 100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-140,6
+140,7
@@
static void socket_dump(Unit *u, FILE *f, const char *prefix) {
char *prefix2;
assert(s);
char *prefix2;
assert(s);
+ assert(f);
prefix2 = strappend(prefix, "\t");
if (!prefix2)
prefix2 = strappend(prefix, "\t");
if (!prefix2)
@@
-779,6
+780,17
@@
int socket_collect_fds(Socket *s, int **fds, unsigned *n_fds) {
return 0;
}
return 0;
}
+void socket_notify_service_dead(Socket *s) {
+ assert(s);
+
+ /* The service is dead. Dang. */
+
+ if (s->state == SOCKET_RUNNING) {
+ log_debug("%s got notified about service death.", unit_id(UNIT(s)));
+ socket_enter_listening(s);
+ }
+}
+
const UnitVTable socket_vtable = {
.suffix = ".socket",
const UnitVTable socket_vtable = {
.suffix = ".socket",