System wait for a connection before start my application
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
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.
System wait for a connection before start my application
I had write a custom application in C language to control a inkjet printer; this software works on this hardware:
1) Motherboard Avalue EPI-LX800 (Geode processor)
2) Custom PCI board to interface Motherboard with printer head
We have build a custom distro with Pengutronix application.
The printer work fine but we have the following problem:
1) At the end of system boot, our application in launch automatically
2) During this phase, if we haven't a network connection attached, or we have a network connection to a PC via crosscable, the system goes in a wait state. A simple plug/unplug of the network cable, or attaching a mouse or keyboard (PS2 or USB), awake system from wait state and system complete start correctly.
If the system have a network connection attached to a switch / hub of a domain with DNS server the system doesn't go on wait state and application start correctly without the need of plug/unplug network cable.
I don't understand which is the item that system wait for whe it is on "wait state previously described". Can someone help me to find problem ?
The system wait for login, but it goes on this wait state when start my application (automatically with a script place on /etc/init.d and it's link place on /etc/rc.d).
If we start our application with strace (on script we have this line:
strace /usr/bin/our_application) to trace all system call, the system start without any wait condition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.