From owner-freebsd-current@freebsd.org Sun May 13 20:36:45 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2AC6FD1AE9 for ; Sun, 13 May 2018 20:36:45 +0000 (UTC) (envelope-from freebsd-current@textmail.me) Received: from mail.codevoid.de (brews.the.best.midnight.coffee [176.9.40.102]) by mx1.freebsd.org (Postfix) with ESMTP id 439E480CC0 for ; Sun, 13 May 2018 20:36:44 +0000 (UTC) (envelope-from freebsd-current@textmail.me) Received: from localhost (HSI-KBW-37-49-77-182.hsi14.kabel-badenwuerttemberg.de [37.49.77.182]) by mail.codevoid.de (Postfix) with ESMTPSA id D294115148 for ; Sun, 13 May 2018 22:34:12 +0200 (CEST) MIME-Version: 1.0 Date: Sun, 13 May 2018 22:36:42 +0200 From: Stefan Hagen To: freebsd-current@freebsd.org Subject: Re: How to access SIGWINCH? Message-ID: <20180513203642.GA35071@ptrace.hagen.corp> Mail-Followup-To: freebsd-current@freebsd.org References: <20180513201344.GA34676@ptrace.hagen.corp> In-Reply-To: <20180513201344.GA34676@ptrace.hagen.corp> Precedence: first-class Priority: normal X-Editor: VIM - Vi IMproved 8.0 X-Operating-System: FreeBSD 12.0-CURRENT amd64 X-Mailer: Mutt 1.9.5 (2018-04-13) X-PGP-Fingerprint: 4192 8A31 504A D6D6 6167 2C3C 1AFE 4370 883F CC91 OpenPGP: id=883FCC91; url=https://pgp.ptrace.org; preference=sign User-Agent: Mutt/1.9.5 (2018-04-13) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 20:36:45 -0000 Stefan Hagen wrote: > I can compile my code with this switch, but is this the proper way to do it? > I would expect something like this behind -D_BSD_SOURCE or > -D_XOPEN_SOURCE=700. Answering myself. I had -D_XOPEN_SOURCE=700 defined which essentially blocks access to SIGWINCH. Not defining -D_XOPEN_SOURCE on FreeBSD fixed my issue. Best Regards, Stefan -- Stefan Hagen Phone: +49 (0)176 642 925 17 Defender of RFC 1855 | PGP Key in Header.