sd-daemon: fix compilation on old systems lacking SOCK_CLOEXEC

This commit is contained in:
Lennart Poettering 2010-08-06 21:33:20 +02:00
parent b9911f4434
commit c593cfe164
2 changed files with 5 additions and 3 deletions

6
fixme
View File

@ -73,12 +73,14 @@
* if a service fails too often, make the service enter maintainence mode, and the socket, too.
* send cgroup msg directly
* don't show file not found msgs for irrelevant units
* getty doesn't respawn
External:
* sysv functions should color when stdout is tty, not stdin
* agetty should not modify baudrate
* ck logging, ssh readahead

View File

@ -325,7 +325,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t
}
int sd_notify(int unset_environment, const char *state) {
#if defined(DISABLE_SYSTEMD) || !defined(__linux__)
#if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC)
return 0;
#else
int fd = -1, r;