]> p2p-next.cs.pub.ro Git - swifty.git/commitdiff
raw: Add read/write state support to sw_socket "syscall".
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 09:38:13 +0000 (12:38 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 09:38:13 +0000 (12:38 +0300)
src/raw/swift_raw.c

index 50cd1df82c7de022b8a1e2b66731522770c35b4a..8c5b4323ec438b22787940915592613ed811f2c3 100644 (file)
@@ -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: