summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-04-08 08:45:34 +0200
committerAndy Wingo <wingo@pobox.com>2015-04-08 08:45:34 +0200
commita3b23257872fe2f8cf99aa2da008f55ada583bb3 (patch)
tree5e567add541f736045ca70199089cc423764d321 /src/core/main.c
parent31ad69aaf459ac5f4d52c604ec2df7cb0793708e (diff)
Remove SysV compat
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/main.c b/src/core/main.c
index dd8b65083b..4fe0b7380b 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1226,18 +1226,6 @@ int main(int argc, char *argv[]) {
struct rlimit saved_rlimit_nofile = RLIMIT_MAKE_CONST(0);
const char *error_message = NULL;
-#ifdef HAVE_SYSV_COMPAT
- if (getpid() != 1 && strstr(program_invocation_short_name, "init")) {
- /* This is compatibility support for SysV, where
- * calling init as a user is identical to telinit. */
-
- errno = -ENOENT;
- execv(SYSTEMCTL_BINARY_PATH, argv);
- log_error_errno(errno, "Failed to exec " SYSTEMCTL_BINARY_PATH ": %m");
- return 1;
- }
-#endif
-
dual_timestamp_from_monotonic(&kernel_timestamp, 0);
dual_timestamp_get(&userspace_timestamp);