--- mingetty-1.01/mingetty.c.orig 2003-02-24 19:40:33 +0300 +++ mingetty-1.01/mingetty.c 2003-02-24 19:41:42 +0300 @@ -185,8 +185,8 @@ if (!isatty (fd)) error ("%s: not a tty", buf); - if (! nohangup) - vhangup (); + if (!nohangup && vhangup ()) + error ("vhangup: %s", strerror(errno)); /* Get rid of the present stdout/stderr. */ close (2); close (1);