Skip to content

[#949] Fix missing NOTADBFILE error in MUPIP DUMPFHEAD output when stderr and stdout are both directed to a file

K.S. Bhaskar requested to merge ksbhaskar/YDB:YDB965 into master

Background

  • be116db8 used /proc/self/fd/2 in the error trap which caused the %DUMPFHEAD-F-NOTADBFILE message line to be swallowed if the stdout and stderr of the mupip dumpfhead command was redirected to a file. See !1291 (comment 1211287436) for more details.

Issue

  • This is a specific case of a general issue. See #965 for more details.

Fix

  • The mupip dumpfhead case can be easily handled by using $principal instead of /proc/self/fd/2 in sr_port/dumpfhead.mpt. And that is exactly what is done in this commit.

  • This fixes the newly introduced /proc/self/fd/2 usage in be116db8.

Notes

  • The other longstanding usages of /proc/self/fd/2 will be fixed in a later release/commit as part of #965.
Edited by Narayanan Iyer

Merge request reports