Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 20:43:08 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   system(3) && open file descriptors
Message-ID:  <20140429184307.GA1114@tiny-r255948>

next in thread | raw e-mail | index | archive | help

Hi,

It seems that the proc started by the C library call system(3), as
/bin/sh -c string
owns the same set of open file descriptors as its calling proc. Is this
somewhere documented as a feature? 'man system" does not say anything
about, while 'man fork' does.

Thx

	matthias

-- 
Sent from my FreeBSD netbook

Matthias Apitz, <guru@unixarea.de>, http://www.unixarea.de/ f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140429184307.GA1114>