8231187: SelectorProvider.inheritedChannel() returns TCP socket channel for Unix domain socket

Reviewed-by: alanb, chegar
This commit is contained in:
Michael McMahon 2019-09-24 16:19:11 +01:00
parent f740058c3d
commit aa5329e0d3
9 changed files with 577 additions and 18 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -27,6 +27,7 @@ package sun.nio.ch;
import java.io.IOException;
import java.nio.channels.spi.AbstractSelector;
import java.nio.channels.*;
public class KQueueSelectorProvider
extends SelectorProviderImpl
@ -34,4 +35,8 @@ public class KQueueSelectorProvider
public AbstractSelector openSelector() throws IOException {
return new KQueueSelectorImpl(this);
}
public Channel inheritedChannel() throws IOException {
return InheritedChannel.getChannel();
}
}