Skip to content

Commit

Permalink
Document execve() limitation on Windows
Browse files Browse the repository at this point in the history
Closes #1253
  • Loading branch information
jart committed Dec 24, 2024
1 parent 0158579 commit cc8a9eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc/proc/execve.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
* compiled by MSVC or Cygwin is launched instead, then only the stdio
* file descriptors can be passed along.
*
* On Windows, the parent process must be a cosmo program. If you're
* calling execve() from a program that wasn't launched by cosmopolitan
* bash, or some similar program, then ask yourself if what you really
* want is to either (a) call fork() first, or (b) use posix_spawn().
*
* On Windows, `argv` and `envp` can't contain binary strings. They need
* to be valid UTF-8 in order to round-trip the WIN32 API, without being
* corrupted.
Expand Down

0 comments on commit cc8a9eb

Please sign in to comment.