summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-06 23:16:18 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-06 23:16:18 +0000
commit121a174f52805811bb673848ddd87f19665a4633 (patch)
treeeabb18387e7669bd6625a524b9f013659e18cfb9 /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
parenta9ae365b2d0fa3e545fc76b819c00c7915d20f02 (diff)
downloadbcm5719-llvm-121a174f52805811bb673848ddd87f19665a4633.tar.gz
bcm5719-llvm-121a174f52805811bb673848ddd87f19665a4633.zip
Support: Add a utility to remap std{in,out,err} to /dev/null if closed
It's possible to start a program with one (or all) of the standard file descriptors closed. Subsequent open system calls will give the program a low-numbered file descriptor. This is problematic because we may believe we are writing to standard out instead of a file. Introduce Process::FixupStandardFileDescriptors, a helper function to remap standard file descriptors to /dev/null if they were closed before the program started. llvm-svn: 219170
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud