* use pivot_root on shutdown so that we can unmount the root directory.
-* make sure multiple sockets in a .socket file appear in the order they are listed
- currently we get:
- [Socket]
- ListenSequentialPacket=@/org/kernel/udev/udevd --> 4
- ListenNetlink=kobject-uevent 1 --> 3
-
* fix alsa mixer restore to not print error when no config is stored
* show enablement status in systemctl status
void *data,
void *userdata) {
- SocketPort *p;
+ SocketPort *p, *tail;
Socket *s;
assert(filename);
}
p->fd = -1;
- LIST_PREPEND(SocketPort, port, s->ports, p);
+
+ if (s->ports) {
+ LIST_FIND_TAIL(SocketPort, port, s->ports, tail);
+ LIST_INSERT_AFTER(SocketPort, port, s->ports, tail, p);
+ } else
+ LIST_PREPEND(SocketPort, port, s->ports, p);
return 0;
}