This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ #14516] Don't make ttyname fail if procfs is unavailable


On 8/24/2012 9:39 AM, Siddhesh Poyarekar wrote:
> On Fri, 24 Aug 2012 09:10:11 -0400, Carlos wrote:
>> This is a change in behaviour though and you should write a NEWS
>> entry for this e.g.
> 
> OK, how about this:
> 
> diff --git a/NEWS b/NEWS
> index e16618f..68d3223 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -39,6 +39,10 @@ Version 2.17
>    New configure option --disable-build-nscd avoids building nscd itself;
>    this is the default if --disable-nscd is used.
>  
> +* The ttyname function on Linux now falls back to searching for the tty file
> +  descriptor in /dev/pts or /dev if /proc is not available. This allows
> +  creations of chroots without the procfs mounted on /proc.
> +

Brilliant.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]