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 50cd1df..8c5b432 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: