From: Glynn Clements <glynn@gclements.plus.com>
To: vadis.list@gmail.com
Cc: linux-c-programming@vger.kernel.org
Subject: Re: getutline (3) fails on a daemon process
Date: Tue, 12 Jun 2007 16:19:55 +0100 [thread overview]
Message-ID: <18030.47515.764472.244603@cerise.gclements.plus.com> (raw)
In-Reply-To: <1181660517.5483.8.camel@blr-img.blr.novell.com>
vadiraj wrote:
> I'm trying to fetch userid using utmp.h API's. I'm able to get the
> userid from the funciton getutline(3) on normal process. But the
> same function while called by a daemon process it fails with perror
> "no such process".
>
> Any Idea why this is failing on a daemon process?
Because the daemon hasn't logged itself to the utmp file.
The utmp file is intended for recording "logged-in users". daemon
processes don't normally register themselves.
--
Glynn Clements <glynn@gclements.plus.com>
prev parent reply other threads:[~2007-06-12 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 15:01 getutline (3) fails on a daemon process vadiraj
2007-06-12 15:19 ` Glynn Clements [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18030.47515.764472.244603@cerise.gclements.plus.com \
--to=glynn@gclements.plus.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=vadis.list@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).