bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how do I check that an FD is open?


From: Sam Steingold
Subject: how do I check that an FD is open?
Date: Sun, 14 Dec 2008 15:28:33 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

How do I figure out if the fd (specifically, stdin=0) is open?
apparently it is closed when the application is run by nohup.
the only thing I could figure out so far is fstat: when 0 is open,
st_mode is 8592, when it is closed it is 8630...

PS. Sorry about asking here, this is the most knowlegeable unix forum I know...

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 8.10 (intrepid)
http://thereligionofpeace.com http://honestreporting.com
http://ffii.org http://mideasttruth.com http://palestinefacts.org
There's always free cheese in a mouse trap.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]