All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: sensors strace
Date: Thu, 19 May 2005 06:24:26 +0000	[thread overview]
Message-ID: <20031123183426.51043260.khali@linux-fr.org> (raw)

Hi all,

As I was investigating the long running "sensors: run as root?" issue, I
found something strange. There is a mysterious sysctl call before and
after reading the /etc/sensors.conf file. See:

open("/etc/sensors.conf", O_RDONLY)     = 3
(...)
ioctl(3, TCGETS, 0xbfffe6f8)            = -1 ENOTTY (Inappropriate ioctl
                                          for device)
(...)
ioctl(3, TCGETS, 0xbfffe6c8)            = -1 ENOTTY (Inappropriate ioctl
                                          for device)

I was unable to find where in the code we do that, but I suspect that
this is in lex/yacc generated code (which is simply unreadable). Does
anyone have an explanation? What's that "TCGETS" supposed to do, and why
is it failing?

Also, the configuration file is never closed. I guess it could be, once
the parsing has been done, can't it?

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

             reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 Jean Delvare [this message]
2005-05-19  6:24 ` sensors strace Greg KH

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=20031123183426.51043260.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.