site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Kevin _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Sep 8, 2009, at 8:22 AM, David Leimbach wrote: On Tue, Sep 8, 2009 at 12:05 AM, Kevin Van Vechten <kvv@apple.com> wrote: I believe the "????" is the result of writing (int)-1 to stdout. Actually it's much worse. I had used calloc to allocate the context, which had the write fd. I had written -1 to "stdin" (0 is stdin right?) Writing to stdin causes the console to barf up ?'s ? My program is wrong, but that's interesting behavior all the same. You're right, stdin is file descriptor zero, which is where the (int)-1 is being written to causing the "????". This email sent to site_archiver@lists.apple.com