[Top][All Lists]

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

Re: refactor common code of 'execute' and 'spawn-pipe'

From: Bruno Haible
Subject: Re: refactor common code of 'execute' and 'spawn-pipe'
Date: Sun, 29 Nov 2020 19:34:42 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

> 2020-11-28  Bruno Haible  <bruno@clisp.org>
>       windows-spawn: New module.

This patch probably introduced a compilation error on OS/2 kLIBC.

Here's a (probable) fix. It copies windows-spawn.[hc] to os2-spawn.[hc].
I will soon modify windows-spawn.[hc], basing it on 'CreateProcess'
instead of '_spawnvpe'. Such modifications are not possible on OS/2,
because there 'spawnvpe' relies on a system call '__spawnve', not
on 'CreateProcess'.

2020-11-29  Bruno Haible  <bruno@clisp.org>

        spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
        * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
        * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
        * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
        * lib/windows-spawn.c: Remove modifications for kLIBC.
        * modules/spawn-pipe (Files): Add the new files.
        (configure.ac): Arrange to compile os2-spawn.c on OS/2.

Attachment: 0001-spawn-pipe-Fix-build-on-OS-2-kLIBC-regression-2020-1.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]