On 21/10/14 18:16, Justin Cormack wrote: > On Tue, Oct 21, 2014 at 7:09 PM, Ian Jackson <[email protected]> > wrote: >> I'm trying to get various things to compile for rumpuser-xen. >> Ultimately I'm hoping to climb the stack to qemu. At the moment I'm >> wrestling gettext (which is a dependency of glib). >> >> gettext wants sigprocmask. Given that we have no machinery for >> delivering signals, I think a stub version of sigprocmask ought to be >> fairly easy to produce. >> >> Does anyone object if I arrange to produce stubs of various signal >> handling functions ? (Does anyone have plans to provide actual signal >> handling ?) > > Sure, go for it. The stubs have been a bit ad hoc so far, probably > worth being more comprehensive.
Yes. Note that there's already a sigprocmask stub in lib/_lwp.c, but that uses the internal name (_sys___sigprocmask14), for the benefit of libpthread. It might be a good idea to lump everything into the same place when adding stubs. > Signal handling does work if you only use kqueue to receive signals, I > certainly don't have any inclination to add any more signal handling > than that... Does receiving signals from a rump kernel via rump_sys_kqueue really work? At least by default I hugely doubt it. We can probably fake things to a high degree. Actual signal delivery is one of those "I really would like to not have to go there" things, as in EINTR from syscalls, delivery when a process is running in "userspace", etc., is going to be ... nnnngh. Signals don't nicely fit into the rump kernel model, since the rump kernel does not actually run the application process. That said, I care about things working more than models, so if something real doesn't work due to problems with signals, let the problem be known. If MiniOS grows signal support, should be quite easy ;) (apart from the EINTR bit) ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ rumpkernel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rumpkernel-users
