[go: up one dir, main page]

Menu

#13 unix-sockets: unlink listen-sockets when listening process shuts down

1.0
closed
None
2019-11-08
2019-11-08
No

at the latest whenever the object (CHost?) which bound the listen-socket is destroyed
emit a warning message (ddcLogWarn()) if the unlink() call fails here

Discussion

  • Alexey Sokirko

    Alexey Sokirko - 2019-11-08
    • assigned_to: Bryan Jurish
     
  • Alexey Sokirko

    Alexey Sokirko - 2019-11-08

    Bryan, Should I print a warning during creating if file exists?

    SOCKET create_unix_domain_socket(string socket_path, bool bBind, string& strError)
    {
    SOCKET l_socket = -1;
    if (bBind) {
    unlink(socket_path.c_str());
    }

     
  • Alexey Sokirko

    Alexey Sokirko - 2019-11-08
    • status: open --> closed
     

Log in to post a comment.