On 4/19/2025 1:42 PM, Camm Maguire via Cygwin-apps wrote:
Greetings!

posix_spawn is returning non-zero without setting errno:

   massert(!posix_spawnp(&pid, *p1, &file_actions, &attr,  (void *)p1, 
environ));

Is this intended to be supported?  Is it known to be working or not
working elsewhere?

This kind of question should be sent to the main Cygwin mailing list cygwin@cygwin.com, now CC'd. Please follow up there if necessary.

On failure, posix_spawnp() returns the error number rather than setting errno. This is a convention followed by some number of the posix_*() functions; which ones is a question for readers of the POSIX standard ;-).

..mark

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to