Fix FreeBSD compatibilty on startup #34

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@tony
Contributor

tony commented Jan 11, 2016

Fixes this error in BSD-like systems:

    fd = os.open("/dev/tty", os.O_WRONLY)
    OSError: [Errno 6] Device not configured: '/dev/tty'

See also:

Fix FreeBSD compatibilty on startup
Fixes this error in BSD-like systems:
	fd = os.open("/dev/tty", os.O_WRONLY)
	OSError: [Errno 6] Device not configured: '/dev/tty'

See also:

- https://github.com/saltstack/salt/blob/6537da7/salt/utils/vt.py#L535
- Fixes #33
@eas604

This comment has been minimized.

Show comment
Hide comment
@eas604

eas604 Jan 12, 2016

Contributor

Interesting! Is this check truly only needed for POSIX systems? Why wouldn't BSD need this check?

Contributor

eas604 commented Jan 12, 2016

Interesting! Is this check truly only needed for POSIX systems? Why wouldn't BSD need this check?

@jonathanslenders

This comment has been minimized.

Show comment
Hide comment
@jonathanslenders

jonathanslenders Jan 12, 2016

Owner

Thank you, @tony! Merged in: 464f456

Interesting indeed, ... I have no idea why we do this on Linux systems, while it doesn't work on BSD.

Owner

jonathanslenders commented Jan 12, 2016

Thank you, @tony! Merged in: 464f456

Interesting indeed, ... I have no idea why we do this on Linux systems, while it doesn't work on BSD.

@tony tony deleted the tony:freebsd-forkfix branch May 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment