nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] Replace fork with clone to share file descriptors b


From: Marco Diego Aurélio Mesquita
Subject: [Nano-devel] [PATCH] Replace fork with clone to share file descriptors between parent and child.
Date: Sun, 12 Aug 2018 13:51:42 -0300
User-agent: NeoMutt/20170113 (1.7.2)

The attached patch replces the call to fork in execute_command with clone. This 
way, file descriptors can be shared between parent and child effectively fixing 
https://savannah.gnu.org/bugs/?54499 .

A dup2 was removed since it was not having any effect.

Please note that I have not tested it extensively.

Attachment: 0001-filter-replace-fork-with-clone-so-that-file-descript.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]