> So your OS is assigning different device names after reattaching? Sounds > like a Linux problem, not a programming problem. > Look at e.g. udev rules to persistently name the device ttyUSB0
Yes, you're right. But, read below: 1) Normal condition, /dev/ttyUSB0 2) Program starts and open USB0 3) Unplug USB0 4) Program closes USB0 and deletes the lock in /var/lock 5) Replug USB0 6) Now the serial interface is not USB0 but USB1. How the kernel remembers that USB0 was open from a still running program? The program has close USB0 and removed the lock... Is there another directory - file where there is a lock? Sorry for my bad English. -- Denis Gottardello Sintesi S.r.l. 049.9301135 ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public