From: Razvan Deaconescu Date: Sat, 21 May 2011 09:38:13 +0000 (+0300) Subject: raw: Add read/write state support to sw_socket "syscall". X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=98b6231b4c62bf1a5f4dea61bbb907d4b8010abf;p=swifty.git raw: Add read/write state support to sw_socket "syscall". --- diff --git a/src/raw/swift_raw.c b/src/raw/swift_raw.c index 50cd1df..8c5b432 100644 --- a/src/raw/swift_raw.c +++ b/src/raw/swift_raw.c @@ -153,6 +153,9 @@ int sw_socket (int __domain, int __type, int __protocol) if (list == NULL) goto list_add_err; + /* Socket is fully open. */ + list->rw_state = STATE_NO_SHUT; + return s; list_add_err: