Bug 230003 - Cannot redirect output to /dev/console on 11.2-Release
Summary: Cannot redirect output to /dev/console on 11.2-Release
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-07-24 04:24 UTC by Ryan Losh
Modified: 2019-07-16 07:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Losh 2018-07-24 04:24:28 UTC
This bug was discovered using the comms/mgetty+sendfax.

That port executes a system() call that has output redirected to /dev/console.  That system() fails with the following message:

system() failed: Inappropriate ioctl for device


This error message is confirmed by the following command:

# echo "foo" >/dev/console 2>&1 </dev/null
/dev/console: Device not configured.

This program was working fine on FreeBSD 11.1-Release.
Comment 1 Ryan Losh 2018-07-24 04:37:09 UTC
The box on which it is failing....Is a headless server in a closet that DOES NOT have a monitor attached.

I have another box running FreeBSD 11.2-Release, with a monitor attached, on which it appears to be working.
Comment 2 jasiu 2019-07-16 07:28:29 UTC
Maybe it depends on motherboard used.
I confirm this issue on this mainboard:
Manufacturer: Gigabyte Technology Co., Ltd.        
Product Name: N3150ND3V

OS version:
FreeBSD 12.0-RELEASE-p7 r349858 GENERIC  amd64

Checked this case on different hardware and the same OS version. No problem occurred. With or without monitor on DSUB /dev/console is accessible.