From: Ernst B. <e.b...@xe...> - 2006-09-08 08:49:44
|
On Thursday 07 September 2006 20:21, tasos wrote: > any ideas please??? > > --- tasos <ta...@ya...> wrote: > > hello again.my situation.starting > > lcd4linux.unpluging > > the usb device and it keeps running. > > So: > > > > signal(SIGHUP, handler); > > signal(SIGINT, handler); > > signal(SIGQUIT, handler); > > signal(SIGTERM, handler); > > > > if (timer_process(&delay) < 0) > > Those are the cases where it gets our of main loop. > > I just want it to be killed(stopped) when the device > > is unplugged. > > Any ideas PLEASE? > > USB unplugging is/should be handled by the individual device drivers. So without knowing what device you're using, there's not much we can do to help you. /Ernst |