- revert the change by Kees again for the amd64 ALL-CAPS problem
sighandler_t old_SIGHUP = signal(SIGHUP,SIG_IGN);
struct termios tt;
sighandler_t old_SIGHUP = signal(SIGHUP,SIG_IGN);
struct termios tt;
struct winsize win;
int master;
int slave;
// FIXME: setup sensible signal handling (*ick*)
tcgetattr(0, &tt);
struct winsize win;
int master;
int slave;
// FIXME: setup sensible signal handling (*ick*)
tcgetattr(0, &tt);
ioctl(0, TIOCGWINSZ, (char *)&win);
ioctl(0, TIOCGWINSZ, (char *)&win);
- if (openpty(&master, &slave, NULL, &tt_out, &win) < 0)
+ if (openpty(&master, &slave, NULL, &tt, &win) < 0)
{
const char *s = _("Can not write log, openpty() "
"failed (/dev/pts not mounted?)\n");
{
const char *s = _("Can not write log, openpty() "
"failed (/dev/pts not mounted?)\n");