Bug 63596 - missing stdout/stderr breaks hotplug /sbin/ifup
Summary: missing stdout/stderr breaks hotplug /sbin/ifup
Keywords:
Status: CLOSED DUPLICATE of bug 61705
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-16 03:28 UTC by Sam Varshavchik
Modified: 2014-03-17 02:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-16 03:28:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Sam Varshavchik 2002-04-16 03:28:22 UTC
My hotplug isn't hotplugging.  Despite reassuring beeps, the pcmcia card does
not come up when it should.  Manually running 'ifup eth0' works.

Further investigation revealed this is what happens each time /sbin/ifup runs
grep, when it is kicked off by /etc/hotplug/net.agent:

execve("/bin/grep", ["grep", "eth0"], [/* 7 vars */]) = 0

...

close(1)                                = -1 EBADF (Bad file descriptor)
write(2, "grep: ", 6)                   = -1 EBADF (Bad file descriptor)
write(2, "write error", 11)             = -1 EBADF (Bad file descriptor)
write(2, ": Bad file descriptor", 21)   = -1 EBADF (Bad file descriptor)
write(2, "\n", 1)                       = -1 EBADF (Bad file descriptor)
_exit(1)                                = ?


Looks like there's no stdout or stderr.

As a temporary fix, adding

exec 1>/dev/null

to /sbin/ifup gets hotplug working again.  Not sure if this is the right fix.

Comment 1 Bill Nottingham 2002-04-16 05:36:28 UTC
This was fixed *before* beta4. Your grep is old.

*** This bug has been marked as a duplicate of 61705 ***


Note You need to log in before you can comment on or make changes to this bug.