mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 01:59:04 +00:00
In case if here no task found which would restore controlling terminal -- exit with error instead of continue with just error message. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
23 lines
484 B
C
23 lines
484 B
C
#ifndef CR_TTY_H__
|
|
#define CR_TTY_H__
|
|
|
|
#include "files.h"
|
|
#include "crtools.h"
|
|
|
|
/* Kernel's limit */
|
|
#define TERMIOS_NCC 19
|
|
|
|
#define PTMX_PATH "/dev/ptmx"
|
|
#ifndef PTMX_MINOR
|
|
# define PTMX_MINOR 2
|
|
#endif
|
|
#define PTS_FMT "/dev/pts/%d"
|
|
|
|
extern int dump_tty(struct fd_parms *p, int lfd, const struct cr_fdset *set);
|
|
extern int collect_tty(void);
|
|
extern int prepare_shared_tty(void);
|
|
extern int tty_setup_slavery(void);
|
|
|
|
extern int tty_verify_active_pairs(void);
|
|
|
|
#endif /* CR_TTY_H__ */
|