On Fri, Dec 14, 2007 at 02:47:03PM +0100, Robin Rosenberg wrote: > > So here is a cleaned up patch. It bumps the maximum size to 64kB, adds > > scalar support (nobody uses it, but it makes sense for the interface to > > match that of safe_pipe_capture -- I am even tempted to just replace > > safe_pipe_capture entirely and convert the few other callers), and > > cleans up the unused safe_pipe_capture_blob. > > Wouldn't using the POSIX::ARG_MAX constant work? It does seem to produce sensible results. Does it work reasonably on Windows? Note that it would also need to be ARG_MAX - slop, where slop accounts for the environment (which maybe we can get accurately by counting the keys and values of %ENV, adding NUL terminators?). -Peff - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html