Revision 12104,
299 bytes
checked in by rbasch, 26 years ago
(diff) |
Fix several problems:
Relinquish /dev/console output when going to console mode; work
around EIO error by reopening tty slave.
Ensure dead child processes are handled, using a pipe added
to the select() read descriptors.
Ignore SIGPIPE.
Fix user name initialization and cleanup.
|
Line | |
---|
1 | #ifndef _CONS_SYSV_H_ |
---|
2 | #define _CONS_SYSV_H_ |
---|
3 | |
---|
4 | typedef struct _cons_state { |
---|
5 | int gotpty; |
---|
6 | int tty_fd, pty_fd; |
---|
7 | char ttydev[64], ptydev[64]; |
---|
8 | |
---|
9 | int state; |
---|
10 | int exitStatus; |
---|
11 | pid_t pid; |
---|
12 | int fd[2]; |
---|
13 | } cons_state; |
---|
14 | |
---|
15 | #define CONSOLE_DEVICE "/dev/console" |
---|
16 | |
---|
17 | #include "cons.h" |
---|
18 | |
---|
19 | #endif /* _CONS_SYSV_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.