bug-coreutils
[Top][All Lists]
Advanced

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

bug#6900: mktemp: want option to make a fifo


From: John Reiser
Subject: bug#6900: mktemp: want option to make a fifo
Date: Tue, 24 Aug 2010 13:30:47 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4

>   (echo quit 1 | cmd1 3<&0 <&4) 4<&0 |
>   (:           | cmd2 3<&0 <&4) 4<&0

When adopting this style, then remember to consider the possibility of
closing the "extra" file descritpor (fd 4 here) to reduce the number
of open files.  If there are no 'trap', then also remember to consider
the possibility of using 'exec' to reduce the number of processes created
['fork' or 'clone' system calls] and their lifetimes:

   (exec echo quit 1 | exec cmd1 3<&0 <&4 4<&-) 4<&0 |
   (     :           | exec cmd2 3<&0 <&4 4<&-) 4<&0

-- 





reply via email to

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