Skip navigation.
Home
The QNX Community Portal

View topic - tinit session timeout

tinit session timeout

Read-only archive of qnx.qnx4 (General QNX4 Discussion Group) at inn.qnx.com

tinit session timeout

Postby Kevin Miller » Thu Aug 31, 2006 7:21 pm

How does tinit implement the -m option, that is, how does it know that a
session hasn't had any input for so many minutes?
Kevin Miller
 

Re: tinit session timeout

Postby David Gibbs » Tue Sep 05, 2006 5:56 pm

Kevin Miller <kevin.miller@transcore.com> wrote:
How does tinit implement the -m option, that is, how does it know that a
session hasn't had any input for so many minutes?

At a guess, it uses dev_arm() to notice when characters appear on the
various different devices (for starting logins, shells, etc), and has
a timer, where it counts "idle" time for each device, and if the idle
time isn't reset (because of a dev_arm() kick), then it issues the
SIGHUP.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs
 


Return to qnx.qnx4

Who is online

Users browsing this forum: No registered users and 2 guests

cron