Skip to content

Commit 4faf129

Browse files
committed
fix infinite loop
1 parent b55398e commit 4faf129

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/swift/Source.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ extension DispatchSourceMemoryPressure {
302302
#if !os(Linux) && !os(Android) && !os(Windows)
303303
extension DispatchSourceProcess {
304304
public var handle: pid_t {
305-
return pid_t((self as! DispatchSource).handle)
306-
// return pid_t(dispatch_source_get_handle(self as! DispatchSource))
305+
return pid_t(CDispatch.dispatch_source_get_handle((self as! DispatchSource).__wrapped))
307306
}
308307

309308
public var data: DispatchSource.ProcessEvent {

0 commit comments

Comments
 (0)