rewrite open-process in C, for robustness
authorAndy Wingo <wingo@pobox.com>
Thu, 23 Feb 2012 12:56:06 +0000 (13:56 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 23 Feb 2012 12:56:54 +0000 (13:56 +0100)
commita2e946f1ef83cd1fd8c87412cc49f6c6d1e0ac61
tree0beaa5f45bae966b92de39c02e9c4486b909e9fc
parent7ea70f355e986c79f2c999753642141a0e8985f7
rewrite open-process in C, for robustness

* libguile/posix.c (scm_open_process): Rewrite in C, so as to avoid
  allocations and other calls that are not async-signal-safe.
  (scm_init_popen, scm_init_posix): Register popen extension.

* module/ice-9/popen.scm: Load the popen extension, to get open-process.
libguile/posix.c
module/ice-9/popen.scm