On Tue, Jun 05, 2012 at 05:17:19PM +0200, Karel Zak wrote:
> On Tue, Jun 05, 2012 at 02:20:38PM +0200, Richard Weinberger wrote:
> > Am 05.06.2012 13:15, schrieb Alan Cox:
> > > Actually I'd prefer a clever solution which can spot all the fds are the
> > > same proc
he TTY fix and patch util-linux too.
I'll follow kernel... so if close-before-vhangup is preferred way
than I'll modify util-linux login(1). No problem.
Karel
--
Karel Zak
http://karelzak.blogspot.com
--
;
if (fd >= 3)
close(fd);
we use this for pretty long time (17+ years).
> If I add:
> fclose(stdin);
> fclose(stdout);
> fclose(stderr);
> before the call to vhangup() login works like charm. :-)
>
> Karel, what do you think?
It&