summaryrefslogtreecommitdiffstats
path: root/chksum.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-02-17 12:11:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-02-17 12:11:15 -0800
commit3080fb5f28e0337b5859f4d6eb19bda9207a65fa (patch)
treea5db86f189fa8aa638ef82285668d387cb3dd500 /chksum.h
parent4247fc89d9dba503a1eb6e211eae604835d782f7 (diff)
downloadtxr-3080fb5f28e0337b5859f4d6eb19bda9207a65fa.tar.gz
txr-3080fb5f28e0337b5859f4d6eb19bda9207a65fa.tar.bz2
txr-3080fb5f28e0337b5859f4d6eb19bda9207a65fa.zip
cygwin: use spawnvp for run and sh.
We revive the dead _wspawnvp code that was used on MinGW, a platform that has not been supported for years, adapting it for Cygwin. * configure: Correct the _wspawnlp test; it should have been testing for _wspawnvp function, which is what is is actually used by the matching code. Moreover, the broken test was calling _wspawnlp with _wspawnvp style arguments. Anyway, this is moot because we will never detect this function in the foreseeable future. More importantly, adding a test for spawnvp, which exists on Cygwin. * stream.c: Include the <process.h> header if HAVE_WSPAWN or HAVE_SPAWN. This was missing before; how did the _wspawnvp call ever compile? (w_spawnvp): New static function. (run): spawn version now calls either _wspawwnvp or w_spawnvp if that is not available. We test for HAVE_WSPAWN or HAVE_SPAWN first, before HAVE_FORK_STUFF, so that we use the spawn function preferentially. On Cygwin, we have the fork stuff.
Diffstat (limited to 'chksum.h')
0 files changed, 0 insertions, 0 deletions