Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

consolehelper: 20 seconds timeout after entering successfully the password.

0 views
Skip to first unread message

Hans Deragon

unread,
Nov 29, 2003, 7:35:13 PM11/29/03
to
Greetings.


I am new to consolehelper and I want to use it for my pet project,
http://autopoweroff.sourceforge.net. My main program requires root
access since it allows the user to reboot and poweroff the computer.

I got it to work, but I noticed that once the password has been
provided successfully, 20 seconds pass before my program is actually
called. There seams to be a timeout of some kind before the execution
of the program. I tested with redhat-config-network and it too
suffers from this 20 seconds delay.

Anybody know what causes this delay? I tried to figure out with
strace, but the function calls are too low level for me to figure out
what is going on.

Here is the part of the strace where it timeouts:

[... deleted lines ...]
write(4, "+\0\1\0", 4) = 4
read(4, "\1\2Y\6\0\0\0\0\4\0\340\1\0\0\0\0\1\0\0\0\0\0\0\0\370\v"...,
32) = 32
ioctl(4, FIONREAD, [0]) = 0
poll(

<<<< Here is the delay >>>>

[{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN,
revents=POLLIN}], 3, -1) = 1
read(3, "42 root\n40 hdtest\n41 0\n39 0\n32\n", 2048) = 31
getuid32() = 600
open("/etc/passwd", O_RDONLY) = 8
fcntl64(8, F_GETFD) = 0
fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
fstat64
[... deleted lines ...]


Sincerely,
Hans Deragon
--
Deragon Informatique inc. Open source:
http://www.deragon.biz http://swtmvcwrapper.sourceforge.net
mailto://ha...@deragon.biz http://autopoweroff.sourceforge.net

0 new messages