John Beranek
Mon, 11 Oct 2004 07:00:00 -0700
Duncan Sands wrote: > > PS: Gilles, the IPC semaphores often go wrong for me - it seems to be > racy. I've given up on it and gone back to an earlier version of > modem_run. PPS: David Woodhouse and I have implemented firmware > loading in the speedtouch module, so there will soon be no need to > use modem_run with the kernel module.
Ah, this is good news, I recently upgraded from Suse 8.2 (Lunux 2.4.x)
to Suse 9.1 (Linux 2.6.4) and the latest modem_run from CVS.
The kernel module worked fine, but modem_run failed to work correctly. I
tracked down the problem as being with the mutex handling, and applied
the very dodgy hack at the end of my email to get myself back online... :)
The rest of my setup from Suse 8.2 seemed to work, except when pppd was
started first time I got:
Oct 3 11:41:41 linda pppd[9077]: pppd 2.4.2 started by root, uid 0
Oct 3 11:41:41 linda pppd[9077]: ioctl(ATM_SETBACKEND): No such device
Which was solved by "modprobe pppoatm". Is there any way to make pppoatm
get loaded automatically?
John.
diff -u -r1.44 modem_run.c
--- modem_run.c 3 Jun 2004 23:29:27 -0000 1.44
+++ modem_run.c 11 Oct 2004 13:45:56 -0000
@@ -263,16 +263,19 @@
switch (val)
{
case S_INIT:
+ case S_LINE_KO:
if (mutex_setval(semid, S_LINE_KO) < 0) {
perror("mutex_setval");
}
do_exit = 0;
break;
+#if 0
case S_LINE_KO:
do_exit = 1;
do_exit_code = -1;
break;
+#endif
case S_LINE_OK:
do_exit = 1;
--
John Beranek To generalise is to be an idiot.
http://redux.org.uk/ -- William Blake
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]