Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The connection works , i start reading from the port, however when i terminate the program ( Control C), i try to reactivate it again , but nothing happens ( it seems like going in an infinite loop). the only way to fix it is to remove the cable and then plug it back again.
When you open a file, close it. A device is a file too in Linux. Be sure when Ctrl+C is pressed to free your ressources, and not just terminate the program. You have to listen to signals (SIGQUIT, SIGKILL) to do that.
if your referring to the process itself, i've already checked its execution, however, i thought once the process itself is killed , the resources are freed as well. If that is not the case , how can i check the resources used by the process itself?
however what i did is tried the same program under fedora , it worked fine, i couldn't even replicate the problem.
i was wondering whether the problem might be with either the kernel version or with slackware.
the fuser and lsof command will help. But -always- close your resources manually, killing wont free all. A serial connection is kind of stupid, it does not detect the end until you call it. It may be the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.