[HACKERS][PATCH] adding simple sock check for windows

From: CharSyam <charsyam(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: [HACKERS][PATCH] adding simple sock check for windows
Date: 2018-03-30 14:40:36
Message-ID: CAMrLSE6etb33-192DTEUGkV-TsvEcxtBDxGWG1tgNOMnQHwgDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, I found some missing check for windows int init_slot function in vacuumdb.c

in windows
SOCKET is unsigned type. so

slot->sock < 0 never can be under 0.

so this patch just check using slot->sock == PGINVALID_SOCKET

Thanks.

Attachment Content-Type Size
simple_check.patch application/octet-stream 473 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2018-03-30 14:43:30 Re: Flexible configuration for full-text search
Previous Message David Fetter 2018-03-30 14:32:55 Re: Feature Request - DDL deployment with logical replication