Re: [PATCH] [RFC] sh(1) vfork support

2011-06-13 Thread Adrian Chadd
If you're going to go down this path, would you mind making it depend upon the contents of an environment variable? Ie, DO_SH_VFORK="yes|no" Then debugging can occur without having to recompile sh. I ask simply because I've been down this path before in other projects, and trying to debug vfork(

[PATCH] [RFC] sh(1) vfork support

2011-06-13 Thread Jilles Tjoelker
The below patch changes sh to use vfork(2) instead of fork(2) in some simple cases: a foreground simple command, not being a command substitution, without redirections or assignments in a non-interactive shell with job control disabled. By restricting the use of vfork, different from what NetBSD h