<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 18, 2014 at 11:04 PM, Dmitry V. Levin <span dir="ltr"><<a href="mailto:ldv@altlinux.org" target="_blank">ldv@altlinux.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
</span>Unlike -42, which is treated as unsigned int (i.e. 2^32-42) by the kernel,<br>
-1 is never a valid file descriptor.<br></blockquote><div>Ok that makes sense. So how about a command line switch that specifically intercepts write (-1, msg) and print out the entire contents of msg, regardless of the formatting of the rest of the output?</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
BTW, should we change printfd() to print the file descriptor (when it's not<br>
equal to -1) using %u format instead of %d?<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>That makes sense to me.</div><div><br></div><div> </div></div></div></div>