raw: Add read/write state support to sw_socket "syscall".
[swifty.git] / 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: