<font size=2 face="sans-serif">Hi Daniel:</font>
<br>
<br><font size=2 face="sans-serif">Support for </font><font size=3>DISPATCH_SOURCE_TYPE_READ</font><font size=2 face="sans-serif">
should be there. If I remember correctly its just support for processes
and VM memory pressure that isn't available.</font>
<br>
<br><font size=2 face="sans-serif">Chris<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Daniel Eggert <danieleggert@me.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Chris Bailey/UK/IBM@IBMGB</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">Dan Stenmark <daniel.j.stenmark@gmail.com>,
Swift core libraries <swift-corelibs-dev@swift.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">20/04/2016 02:46</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [swift-corelibs-dev]
NSTask and NSFileHandle implementation</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Wouldn't it still be a huge win to use dispatch for reading
from / writing to a file descriptor?</font>
<br>
<br><font size=3>/Daniel</font>
<br>
<br><font size=3><br>
On Apr 18, 2016, at 01:52, Chris Bailey via swift-corelibs-dev <</font><a href="mailto:swift-corelibs-dev@swift.org"><font size=3 color=blue><u>swift-corelibs-dev@swift.org</u></font></a><font size=3>>
wrote:<br>
</font>
<br><font size=2 face="sans-serif">Hi Dan:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
The Dispatch sources are mostly complete - unfortunately DISPATCH_SOURCE_TYPE_PROC
isn't there and it unlikely to be there in a hurry. It would ideally need
the underlying kqueue library to have EVFILT_PROC support, which it doesn't
today.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Chris</font><font size=3><br>
<br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From: </font><font size=1 face="sans-serif">Dan
Stenmark via swift-corelibs-dev <</font><a href="mailto:swift-corelibs-dev@swift.org"><font size=1 color=blue face="sans-serif"><u>swift-corelibs-dev@swift.org</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: </font><font size=1 face="sans-serif">Alexander
Alemayhu <</font><a href=mailto:alexander@alemayhu.com><font size=1 color=blue face="sans-serif"><u>alexander@alemayhu.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc: </font><font size=1 face="sans-serif">Swift
core libraries <</font><a href="mailto:swift-corelibs-dev@swift.org"><font size=1 color=blue face="sans-serif"><u>swift-corelibs-dev@swift.org</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: </font><font size=1 face="sans-serif">16/04/2016
22:00</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: </font><font size=1 face="sans-serif">Re:
[swift-corelibs-dev] NSTask and NSFileHandle implementation</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by: </font><a href="mailto:swift-corelibs-dev-bounces@swift.org"><font size=1 color=blue face="sans-serif"><u>swift-corelibs-dev-bounces@swift.org</u></font></a><font size=3>
<br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
While we’re on the subject, I’ve been out of the loop for a little while:
how’s the Linux-side implementation of dispatch sources looking these
days? In particular, I’m interested in the status of DISPATCH_SOURCE_TYPE_READ
and DISPATCH_SOURCE_TYPE_PROC. <br>
<br>
Right now, NSTask is using Good Ol’ CFRunLoops for it’s event handling,
and I’d really like to move that over to GCD as soon as I can. <br>
<br>
Dan <br>
<br>
<br>
On Apr 16, 2016, at 1:55 PM, Dan Stenmark <</font><a href=mailto:daniel.j.stenmark@gmail.com><font size=3 color=blue><u>daniel.j.stenmark@gmail.com</u></font></a><font size=3>>
wrote: <br>
<br>
Hey Alexander, <br>
<br>
I supplied most of the initial implementation of NSTask, but was holding
off on IO redirection until someone tackled NSFileHandle. I can’t
say if anyone else on this list is working on this right now, but if not
and if you’re really interested in finishing NSFileHandle, I would (very
happily!) take care of the relevant implementation in NSTask. <br>
<br>
Dan <br>
<br>
On Apr 16, 2016, at 1:50 AM, Alexander Alemayhu via swift-corelibs-dev
<</font><a href="mailto:swift-corelibs-dev@swift.org"><font size=3 color=blue><u>swift-corelibs-dev@swift.org</u></font></a><font size=3>>
wrote: <br>
<br>
Hei Everyone, <br>
<br>
Is anyone working on the NSTask and/or NSFileHandle implementation? <br>
<br>
I would like to fix the hangs issue in order to revert [3aa8434][0](disable
<br>
NSTask tests for now since it can cause hangs., 2016-01-21), but want to
avoid <br>
duplicating work. Fixing this should also resolve [SR-625][1]. <br>
<br>
Thanks. <br>
<br>
[0]: </font><a href="https://github.com/apple/swift-corelibs-foundation/commit/3aa8434df50d9513a0ac1646fb52516a092fa728"><font size=3 color=blue><u>https://github.com/apple/swift-corelibs-foundation/commit/3aa8434df50d9513a0ac1646fb52516a092fa728</u></font></a><font size=3>
<br>
[1]: </font><a href="https://bugs.swift.org/browse/SR-625"><font size=3 color=blue><u>https://bugs.swift.org/browse/SR-625</u></font></a><font size=3>
<br>
<br>
-- <br>
Mit freundlichen Grüßen<br>
<br>
Alexander Alemayhu <br>
_______________________________________________<br>
swift-corelibs-dev mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:swift-corelibs-dev@swift.org"><font size=3 color=blue><u>swift-corelibs-dev@swift.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><font size=3 color=blue><u>https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></a><font size=3>
<br>
</font><tt><font size=2><br>
_______________________________________________<br>
swift-corelibs-dev mailing list</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href="mailto:swift-corelibs-dev@swift.org"><tt><font size=2 color=blue><u>swift-corelibs-dev@swift.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><tt><font size=2 color=blue><u>https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></tt></a><font size=3><br>
<br>
</font>
<br><font size=3>_______________________________________________<br>
swift-corelibs-dev mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:swift-corelibs-dev@swift.org"><font size=3 color=blue><u>swift-corelibs-dev@swift.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><font size=3 color=blue><u>https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></a>
<br>
<br>