Mornin',
I have a program, when ran normally, it works fine. It uses select()
to monitor for input on a number of interfaces, including stdin. When ran
in the bg (using ./prog &) gets a read event on stdin. The resulting
getc(stdin) call hangs the process. Can anyone tell me why i get a read
event first of all? And secondly, how do i fix this? At the moment, i
check to see if the process is running in the fg, if not i don't add
stdin to the fd_set, but it's not a good solution. Anyone got any
suggestions?
Steve
--
"The Catholic Church may wish to consider conducting Mass in Pig Latin,
as it combines the solemnity of Latin with the accessibility of English."
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!