Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31458 - pcmcia init script which starts net fails to kill dhcpcd when 'stop'ing, which causes problems
Summary: pcmcia init script which starts net fails to kill dhcpcd when 'stop'ing, whic...
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 68964
  Show dependency tree
 
Reported: 2003-10-18 17:07 UTC by Shahar Goldin
Modified: 2005-05-21 14:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shahar Goldin 2003-10-18 17:07:06 UTC
/etc/init.d/pcmcia start 
apparently starts cardmgr, and gets my netcard working (dhcpcd eth0)
/etc/init.d/pcmcia stop 
apparently stops cardmgr

This is problematic because if I accidentally pull out my network card
(dongleless... it's easier than it seems :-P) and try to restart pcmcia, it
can't because the device is still busy because dhcpcd is using it.
it SHOULD stop net.eth0, shouldn't it?


Reproducible: Always
Steps to Reproduce:
1.start pcmcia 
2.pull and plug in a pcmcia network card that was initiated by pcmcia
3.attempt to restart pcmcia

Actual Results:  
# /etc/init.d/pcmcia start
modprobe: Can't locate module ds
 * Starting pcmcia...
cardmgr[7141]: open_sock(socket 0) failed: Device or resource busy
cardmgr[7141]: another cardmgr is already running?
 * cardmgr failed to start.  Make sure that you have PCMCIA
 * modules built or support compiled into the kernel                      [ !! ]


Expected Results:  
# /etc/init.d/pcmcia restart
modprobe: Can't locate module ds
 * Starting pcmcia...
cardmgr[28206]: watching 2 sockets                                        [ ok ]


# emerge info
Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.22-ck2)
=================================================================
System uname: 2.4.22-ck2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad
mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib
gdbm berkdb slang readline svga tcltk java sdl gpm tcpd pam ssl perl python esd
imlib oggvorbis opengl X gtk -xmms -gnome alsa -kde -qt -arts pcmcia"
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2004-09-22 09:27:19 UTC
There should be no need to restart pcmcia... the error you're getting is because cardmgr is still running. cardmgr monitors the slots for insert and removals... it does not stop because you pulled out the card. It's still running so you get the error that the socket is already used because there's already a version of it running. Also the missing module ds isn't really a good error to have.
Comment 2 Henrik Brix Andersen 2005-04-25 05:16:36 UTC
Reporter, please check if sys-apps/pcmcia-3.2.8 fixes this issue.
Comment 3 Henrik Brix Andersen 2005-05-21 14:19:54 UTC
Closing due to lack of feedback.