mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Initial set of changes working to make fish robust against running out of file descriptors
This commit is contained in:
@@ -80,7 +80,7 @@ static int is_dead()
|
||||
|
||||
static int try_get_socket_once(void)
|
||||
{
|
||||
int s, len;
|
||||
int s;
|
||||
|
||||
wchar_t *wdir;
|
||||
wchar_t *wuname;
|
||||
@@ -128,7 +128,6 @@ static int try_get_socket_once(void)
|
||||
struct sockaddr_un local = {};
|
||||
local.sun_family = AF_UNIX;
|
||||
strncpy(local.sun_path, name.c_str(), (sizeof local.sun_path) - 1);
|
||||
len = sizeof(local);
|
||||
|
||||
if (connect(s, (struct sockaddr *)&local, sizeof local) == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user