mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Call FileCloseOnExecAll after fork
This commit is contained in:
parent
5a4a70c572
commit
00e1424518
1 changed files with 4 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ implementation
|
|||
|
||||
uses
|
||||
URIParser, Unix, Process, LazUTF8, DCOSUtils, DCClassesUtf8, DCStrUtils,
|
||||
uDCUtils, uOSUtils
|
||||
DCUnix, uDCUtils, uOSUtils
|
||||
{$IF (NOT DEFINED(FPC_USE_LIBC)) or (DEFINED(BSD) AND NOT DEFINED(DARWIN))}
|
||||
, SysCall
|
||||
{$ENDIF}
|
||||
|
|
@ -690,6 +690,9 @@ begin
|
|||
|
||||
if pid = 0 then
|
||||
begin
|
||||
{ Set the close-on-exec flag to all }
|
||||
FileCloseOnExecAll;
|
||||
|
||||
{ Set child current directory }
|
||||
if Length(StartPath) > 0 then fpChdir(StartPath);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue