diff options
Diffstat (limited to 'meta/recipes-devtools/pseudo/files/toomanyfiles.patch')
-rw-r--r-- | meta/recipes-devtools/pseudo/files/toomanyfiles.patch | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-devtools/pseudo/files/toomanyfiles.patch b/meta/recipes-devtools/pseudo/files/toomanyfiles.patch index 7319ab29bf..b085a4505d 100644 --- a/meta/recipes-devtools/pseudo/files/toomanyfiles.patch +++ b/meta/recipes-devtools/pseudo/files/toomanyfiles.patch @@ -9,7 +9,7 @@ a small risk of data loss here sadly but its better than hanging. RP 2017/4/25 -Upstream-Status: Pending [Peter is aware of the issue] +Upstream-Status: Submitted [Peter is aware of the issue] Index: pseudo-1.8.2/pseudo_server.c =================================================================== @@ -31,15 +31,12 @@ Index: pseudo-1.8.2/pseudo_server.c pseudo_debug(PDBGF_SERVER, "server loop started.\n"); if (listen_fd < 0) { -@@ -663,10 +665,18 @@ pseudo_server_loop(void) { +@@ -663,10 +665,15 @@ pseudo_server_loop(void) { message_time.tv_usec -= 1000000; ++message_time.tv_sec; } + } else if (hitmaxfiles) { -+ /* In theory there is a potential race here where if we close a client, -+ it may have sent us a fastop message which we don't act upon. -+ If we don't close a filehandle we'll loop indefinitely thought. -+ Only close one per loop iteration in the interests of caution */ ++ /* Only close one per loop iteration in the interests of caution */ + close_client(i); + hitmaxfiles = 0; } |