Skip to content

Commit

Permalink
Removed O_NONBLOCK from the socket flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Minns committed Jan 19, 2017
1 parent a4fe139 commit 1b62b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Blackfire/Socket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct Socket {
init(raw: Int32, type: SocketType = .tcp) throws {

let flags = fcntl(raw, F_GETFL, 0)
let status = fcntl(raw, F_SETFL, flags | O_NONBLOCK);
let status = fcntl(raw, F_SETFL, flags);

if raw < 0 {
throw SocketError.NoFileDescriptor
Expand Down

0 comments on commit 1b62b78

Please sign in to comment.