solution to -> Re: adding fifo input to the main glib2 loop

2002-09-22 Thread Ben Martin
After chatting on IRC and having owen looking at various things and helping me on this issue I felt it would be nice to post extracts here so that other folks looking at the same issue might find them here later. It turns out that after you have read() all the data from the fifo fd glib2 gets POL

RE: adding fifo input to the main glib2 loop

2002-09-06 Thread Nils O. SelÄsdal
> >Hi, > > I have an app that mkfifo()s && open()s and then attaches a > >g_io_channel to the fd. The basic idea is that clients can > drop scheme > >code to a fifo for the app to execute, thus the server only > reads the > >pipe and clients should only write it. > > > >I have this working w

Re: adding fifo input to the main glib2 loop

2002-09-06 Thread Paul Davis
>Hi, > I have an app that mkfifo()s && open()s and then attaches a >g_io_channel to the fd. The basic idea is that clients can drop scheme >code to a fifo for the app to execute, thus the server only reads the >pipe and clients should only write it. > >I have this working with one catch, after th