[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: cttyhack fix
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2010-05-14 1:30:45
Message-ID: 201005140330.45654.vda.linux () googlemail ! com
[Download RAW message or body]
Please explain what situation you are trying to fix.
Just sending a patch with no explanation whatsoever is... strange.
On Thursday 13 May 2010 22:10, Constantine Shulyupin wrote:
> diff --git a/shell/cttyhack.c b/shell/cttyhack.c
> index 572a3af..90c73c1 100644
> --- a/shell/cttyhack.c
> +++ b/shell/cttyhack.c
> @@ -69,6 +69,7 @@ int cttyhack_main(int argc UNUSED_PARAM, char **argv)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0dup2(fd, 2);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0while (fd > 2) close(fd--);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/* Some other session may have it as ctty. S=
> teal it from them */
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 setsid();
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ioctl(0, TIOCSCTTY, 1);
> =A0 =A0 =A0 =A0}
The patch is mangled by email software somewhere on the way.
Please send at attachment.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic