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

Carlos O'Donell carlos_odonell@mentor.com
Fri Aug 24 14:12:00 GMT 2012


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



More information about the Libc-alpha mailing list