diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/unx/source/start.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index 040110e7c390..a488f955a319 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -380,8 +380,10 @@ connect_pipe( rtl_uString *pPipePath ) #endif if ( connect( fd, (struct sockaddr *)&addr, len ) < 0 ) - return -1; - + { + close(fd); + fd = -1; + } return fd; } |