When 'console none' is specified in job files, output is still sent to the console

Bug #70782 reported by Alex Smith
2
Affects Status Importance Assigned to Milestone
upstart
Fix Released
Medium
Scott James Remnant (Canonical)
upstart (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

I think this is a mistake, in the case CONSOLE_NONE, it sets fd to /dev/console (CONSOLE), rather than DEV_NULL.

Revision history for this message
Alex Smith (aejsmith) wrote :

Here's a patch to fix it

Revision history for this message
Alex Smith (aejsmith) wrote :

As per the HACKING file in the upstart source, here's a suggested ChangeLog entry:

 * init/process.c (process_setup_console): actually send to /dev/null instead of /dev/console when 'console none' is in a job file.

Changed in upstart:
assignee: nobody → keybuk
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Changed in upstart:
assignee: nobody → keybuk
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Thanks Alex, committed.

Changed in upstart:
status: Confirmed → Fix Committed
Changed in upstart:
status: Fix Committed → Fix Released
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.