[Gllug] Off Topic: C File Descriptors

Tethys sta296 at astradyne.co.uk
Thu Mar 6 22:52:37 UTC 2008


--------

Mick Farmer writes:

>Is there a way of determining whether standard output and
>standard error are going to the same file/device?

You could always check if /proc/<pid>/fd/{1,2} point to the
same place.

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list