For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > December 2004 > no utmp entry?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author no utmp entry?
brankok@dkts.co.yu

2004-12-30, 8:57 am

Hi! I am developing an application that has to communicate with the
agetty program using pseudo terminals. My application opens the
pseudo-terminal master.Then it creates a child, the child establishes a
new session, and then calls exec replacing the calling program with the
agetty program and passing the name of the slave pseudo terminal. The
agetty exits soon after with the following message "/dev/pts/0: no utmp
entry".

I would really appreciate it very much if anyone could provide me with
some explanation on what this means.

Ian Clarke

2004-12-30, 3:59 pm

brankok@dkts.co.yu wrote:
> Hi! I am developing an application that has to communicate with the
> agetty program using pseudo terminals. My application opens the
> pseudo-terminal master.Then it creates a child, the child establishes

a
> new session, and then calls exec replacing the calling program with

the
> agetty program and passing the name of the slave pseudo terminal. The
> agetty exits soon after with the following message "/dev/pts/0: no

utmp
> entry".
>
> I would really appreciate it very much if anyone could provide me

with
> some explanation on what this means.


IIRC, this is because getty expects login(1) to have already
created an INIT_PROCESS utmp record for the terminal, and
getty then modifies this record.

Probably agetty is the same. But why not look at the source
of agetty to see precisely what part of the program delivers
this error, and why?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com