[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Starting a subprocess in stopped state
From: |
Eli Zaretskii |
Subject: |
Re: Starting a subprocess in stopped state |
Date: |
Sun, 07 May 2017 20:16:38 +0300 |
> From: Philipp Stephani <address@hidden>
> Date: Sun, 07 May 2017 12:24:33 +0000
> Cc: Daiki Ueno <address@hidden>
>
> Is there a way to create a process on Unix and GNU systems, but
> prevent it from running until it gets SIGCONT or something similar?
>
> It's at least theoretically possible on macOS using posix_spawn(3) and
> POSIX_SPAWN_START_SUSPENDED
> (https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/posix_spawnattr_setflags.3.html).
> I don't think it's possible using fork/exec (but then, switching to
> posix_spawn might be a good idea anyway).
Thanks. However, since this an Apple extension, I don't think we can
use it unless there's an equivalent feature on other Unix and GNU
systems.