chore: Android version supports child processes following the main process rules

This commit is contained in:
gVisor bot 2022-12-11 18:24:55 +08:00
parent 524b82734a
commit 92446efd80

View file

@ -185,7 +185,7 @@ func splitCmdline(cmdline []byte) string {
cmdline = bytes.Trim(cmdline, " ")
idx := bytes.IndexFunc(cmdline, func(r rune) bool {
return unicode.IsControl(r) || unicode.IsSpace(r)
return unicode.IsControl(r) || unicode.IsSpace(r) || r == ':'
})
if idx == -1 {