Re: how do I check that an FD is open?

2008-12-15 Thread Paolo Bonzini
Sam Steingold wrote: > 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... Given that 8592 & 0777 == 06

Re: how do I check that an FD is open?

2008-12-14 Thread Bruno Haible
Sam Steingold wrote: > 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... When fd is closed, fstat sho

Re: how do I check that an FD is open?

2008-12-14 Thread Jim Meyering
Sam Steingold wrote: > 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... Hi Sam, This is very light

how do I check that an FD is open?

2008-12-14 Thread Sam Steingold
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 knowlegeabl