Calling system() in multi-threads.

Takashi Yano takashi.yano@nifty.ne.jp
Tue Jun 17 12:54:11 GMT 2025


Hi,

If system() is called in parallel in threads, system()
fails with exit code 127.

Just compile pthread_system.c attached and run.

I believe system() is multi-thread safe so the STC
should work.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_system.c
Type: text/x-csrc
Size: 397 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20250617/7f160d55/attachment.bin>


More information about the Cygwin mailing list