Re: [swift-corelibs-dev] Swift DispatchSource not working

2016-07-08 Thread Pierre Habouzit via swift-corelibs-dev
the bug is known and will be fixed in Seed 3 (?). signal based sources are mapped to TYPE_READ by mistake in the overlay. Matt will confirm. -Pierre > On Jul 7, 2016, at 7:13 PM, Darren Mo via swift-corelibs-dev > wrote: > > I am trying to catch SIGWINCH (terminal window size changed) in Swi

[swift-corelibs-dev] Swift DispatchSource not working

2016-07-08 Thread Darren Mo via swift-corelibs-dev
I am trying to catch SIGWINCH (terminal window size changed) in Swift 3 (Xcode 8 beta 2). The following code should exit with a status of 1 when it receives SIGWINCH. But it never exits. ```swift // compile with `xcrun -sdk macosx swiftc sigwinch.swift` import Darwin import Dispatch let source