mirror of
https://github.com/eddyem/tty_term.git
synced 2026-06-21 19:36:29 +03:00
remove bug with sockets: write->send(..., MSG_NOSIGNAL)
This commit is contained in:
@@ -214,7 +214,7 @@ int SendData(chardevice *d, char *str){
|
||||
break;
|
||||
case DEV_NETSOCKET:
|
||||
case DEV_UNIXSOCKET:
|
||||
if(lplus != send(d->dev->comfd, buf, lplus, 0)) ret = 0;
|
||||
if(lplus != send(d->dev->comfd, buf, lplus, MSG_NOSIGNAL)) ret = 0;
|
||||
else ret = l;
|
||||
pthread_mutex_unlock(&d->mutex);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user