This is an archive of the discontinued LLVM Phabricator instance.

Avoid usage of F_DUPFD_CLOEXEC where not available (e.g. kfreebsd*)
ClosedPublic

Authored by sylvestre.ledru on Aug 28 2015, 4:54 AM.

Details

Summary

kfreebsd doesn't have F_DUPFD_CLOEXEC, so use it conditionally.

Author: Emilio Pozuelo Monfort <pochu@debian.org>
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Author: Gianfranco Costamagna

Diff Detail

Event Timeline

sylvestre.ledru retitled this revision from to Avoid usage of F_DUPFD_CLOEXEC where not available (e.g. kfreebsd*).
sylvestre.ledru updated this object.
emaste accepted this revision.Aug 28 2015, 5:23 AM
emaste edited edge metadata.
emaste added inline comments.
source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
472

Properly kFreeBSD, no?

This revision is now accepted and ready to land.Aug 28 2015, 5:23 AM
sylvestre.ledru updated this object.
sylvestre.ledru edited edge metadata.

Fix the typo (thanks)

Although, is there a reason kFreeBSD doesn't have F_DUPFD_CLOEXEC?

Nope, KFreeBSD will have it in the next version