title: socket binding failed with SO_REUSEADDR (address already in use)
body: <pre><code>setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &amp;sz, sizeof(sz));
  
  if(bind(s, (struct sockaddr *) &amp;addr, sizeof(addr)) &lt; 0) {
        printf("%s bind failed: %s", __func__, strerror(errno));
        close(s);
        return -1;
  }
  </code></pre>
  
  <p>OUTPUT:
  open_uevent bind failed: Address already in use</p>
  
  <p>Can anyone help with this?</p>
  
  <p>Thanks</p>