About g_io_add_watch on arm platform



Hi all,

I use glib on i386 platform to wait for data on a socket. I use next code :

  if ((dev = hci_open_dev(hdev)) < 0) {
    syslog(LOG_ERR, "Can't open device hci%d. %s(%d)",
	   hdev, strerror(errno), errno);
    return;
  }
  chan = g_io_channel_unix_new(dev);
  
  g_io_add_watch(chan, G_IO_IN | G_IO_NVAL | G_IO_HUP | G_IO_ERR,
		   event_received, (void *) di);

  gloop = g_main_new (0);
  g_main_run (gloop);


On i386, it works well, and when data are comming, function event_received is called.

Now I want to use the same code on an arm platform (OMAP 1510). The problem is that in the same situation, function event_received is never called.

I tested "select" alone, it works well on my arm platform.

Does someone experienced something similar on an ARM platform ? Does someone have any idea how I could have such strange problem ?

Thank you for any help.
-- 
Alain Paschoud                      SMARTDATA SA
alain paschoud smartdata ch         PSE-A
http://www.smartdata.ch             1015 Lausanne
Phone +41-21-693'84'98              
Fax   +41-27-693'84'91              



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]