Thread: How to make C program to listen to Operating System Signals?

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    1

    How to make C program to listen to Operating System Signals?

    Hi, I'm creating a simple Qt4 app, the app listens for usb device connectivity i'e whether it is attached or detached. I'm able to do this through polling, running infinite loop. May be this is not the right approach, want to try it out it in a different way where the operating system signals my app about the connectivity. How can this be done under Linux platform?

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675

  3. #3
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by halfrobinhood View Post
    Hi, I'm creating a simple Qt4 app, the app listens for usb device connectivity i'e whether it is attached or detached. I'm able to do this through polling, running infinite loop. May be this is not the right approach, want to try it out it in a different way where the operating system signals my app about the connectivity. How can this be done under Linux platform?
    Maybe with dbus ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Could that/this make a real operating system?
    By azjherben in forum C++ Programming
    Replies: 13
    Last Post: 09-12-2009, 05:52 AM
  2. Operating System
    By Houssen in forum C Programming
    Replies: 18
    Last Post: 04-22-2008, 12:51 PM
  3. Multiple Operating System Program
    By Matt3000 in forum Windows Programming
    Replies: 5
    Last Post: 07-14-2006, 11:46 AM
  4. Replies: 5
    Last Post: 08-22-2002, 03:32 PM
  5. Operating System
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2002, 10:02 PM