GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auto-port 4.1: Kqueue: Fix usage of LOCAL_PEERPID (#16646) · netty/netty@266ba3c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport-native-kqueue/src/main/c
    • netty_kqueue_bsdsocket.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport-native-kqueue/src/main/c/netty_kqueue_bsdsocket.c‎

Copy file name to clipboardExpand all lines: transport-native-kqueue/src/main/c/netty_kqueue_bsdsocket.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static jobject netty_kqueue_bsdsocket_getPeerCredentials(JNIEnv *env, jclass cla
279279
#ifdef LOCAL_PEERPID
280280
socklen_t len = sizeof(pid);
281281
// Getting the LOCAL_PEERPID is expected to return error in some cases (e.g. server socket FDs) - just return 0.
282-
if (netty_unix_socket_getOption0(fd, SOCK_STREAM, LOCAL_PEERPID, &pid, len) < 0) {
282+
if (netty_unix_socket_getOption0(fd, SOL_LOCAL, LOCAL_PEERPID, &pid, len) < 0) {
283283
pid = 0;
284284
}
285285
#endif

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.