Skip to content

ctrl-c server #2

@ghost

Description

if server is ctrl-c killed client does not shutdown. Not a huge issue but super easy to fix. In read thread do something like:
ret = read();
if(ret == 0)
{
_connActive = 0;
pthread_exit(NULL);
}

    then in main if _connActive == 0
                              break;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions