Overview
| Artifact ID: | d25c98d11f2382cf1f5057cd91f7e2f4b39785ebe0e86ede634e41604ba63b28 |
|---|---|
| Ticket: | 21dbc600ae0a005a7f879a05580550a8da257b14
exec hangs, iff stdin & stdout both were previously closed. |
| User & Date: | serhiy.storchaka on 2026-10-20 21:28:10 |
Changes
- icomment:
The warning is not new in this branch: TclpCreateProcess() is unchanged, but unix/tclUnixPipe.c has <code>#define fork vfork</code> when HAVE_VFORK is set, so <code>pid = fork();</code> is really vfork(), after which gcc warns about locals that may be clobbered. <code>dsArray</code> and <code>newArgv</code> there were already volatile for this reason, <code>errPipeIn</code>/<code>errPipeOut</code> were not. Fixed in [4af19e7744] on the branch: they are volatile now (TclpCreatePipe() fills plain temporaries). My gcc 15 never showed the warning, so please check that it is gone with yours.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"