initscripts bug

Sergey mafia_rgd at mail.ru
Tue Dec 6 09:25:08 UTC 2005


Just found a bug in netplugd after having traced it with strace. netplugd is a 
network plug-in/out monitoring daemon, performing the specified actions when 
such an event comes up. Comes with net-tools rpm.

Alright, now the bug. Try to start/restart netplugd from a terminal:
/sbin/service netplugd restart or /etc/init.d/netplugd restart. Starts up 
well. Good. Now start mc and run the above command again. It hangs up. Strace 
comes with:

[pid  9404] write(1, "/etc/netplug.d/netplug eth0 prob"..., 46) = ? 
ERESTARTSYS (To be restarted)
[pid  9404] --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
[pid  9404] --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---

The cloned process is T (stopped).

# ps axu | grep netplugd
root      9699  0.0  0.1   1548   412 pts/2    S+   14:23   0:00 netplugd
root      9700  0.0  0.0   1552   252 pts/2    T    14:23   0:00 netplugd

I am not sure why mc causes such a stop, anyway it is somehow related to 
terminal. What if such a script hangs up on a remote system reboot? Bad...




More information about the fedora-list mailing list