]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r222511,r223206: posix_spawn(): Do not fail when trying to close an fd
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 26 Jun 2011 10:50:11 +0000 (10:50 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 26 Jun 2011 10:50:11 +0000 (10:50 +0000)
commit5d98419442750211094ee109bc4192435e2be120
tree8c3af75fdd668281b6ac92043d7dcd9338b9998c
parentbb0bfd4f7fc19ac6177d8365d939d0bbd5702e98
MFC r222511,r223206: posix_spawn(): Do not fail when trying to close an fd
that is not open.

As noted in Austin Group issue #370 (an interpretation has been issued),
failing posix_spawn() because an fd specified with
posix_spawn_file_actions_addclose() is not open is unnecessarily harsh, and
there are existing implementations that do not fail posix_spawn() for this
reason.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/posix_spawn.3
lib/libc/gen/posix_spawn.c