<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: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Daniel Eggert &lt;danieleggert@me.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Chris Bailey/UK/IBM@IBMGB</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Dan Stenmark &lt;daniel.j.stenmark@gmail.com&gt;,
Swift core libraries &lt;swift-corelibs-dev@swift.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">20/04/2016 02:46</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</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 &lt;</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>&gt;
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: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Dan
Stenmark via swift-corelibs-dev &lt;</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">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Alexander
Alemayhu &lt;</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">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Swift
core libraries &lt;</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">&gt;</font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</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: &nbsp; &nbsp; &nbsp; &nbsp;</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: &nbsp; &nbsp; &nbsp; &nbsp;</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? &nbsp;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 &lt;</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>&gt;
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. &nbsp;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
&lt;</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>&gt;
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>