POV-Ray : Newsgroups : povray.unix : small bugfix in unix.cpp? : Re: small bugfix in unix.cpp? Server Time
8 Jul 2024 18:15:59 EDT (-0400)
  Re: small bugfix in unix.cpp?  
From: Christoph Hormann
Date: 8 Jun 2003 06:45:22
Message: <3EE313EA.6B620D82@gmx.de>
fja### [at] abofi wrote:
> 
> [...]
> 
> Inserting the lines:
> 
>  if (ttyname(0) == NULL)
>     return (false);
> 
> before the lines above seems to solve the problem, at least in the first case.
> The manpage for ttyname says it returns NULL if an error occurs.
> Comments?

I don't remember any such problem when running povray remotely but since
the specs say ttyname() can return NULL this should be handled correctly.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.