GNU bug report logs - #6900
mktemp: want option to make a fifo

Previous Next

Package: coreutils;

Reported by: John Reiser <jreiser <at> bitwagon.com>

Date: Mon, 23 Aug 2010 15:41:01 UTC

Severity: normal

Tags: notabug

Merged with 6330

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #53 received at 6900 <at> debbugs.gnu.org (full text, mbox):

From: John Reiser <jreiser <at> bitwagon.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Eric Blake <eblake <at> redhat.com>, 6900 <at> debbugs.gnu.org
Subject: Re: bug#6900: mktemp: want option to make a fifo
Date: Tue, 24 Aug 2010 13:30:47 -0700
>   (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

-- 




This bug report was last modified 13 years and 350 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.