On Thu, Jan 10, 2013 at 11:08 PM, Cedric Blancher <[email protected]> wrote: > On 3 December 2012 18:28, Cedric Blancher > <[email protected]> wrote: >> On 28 November 2012 09:39, Clark WANG <[email protected]> wrote: >>> On Wed, Nov 28, 2012 at 4:16 PM, Glenn Fowler <[email protected]> wrote: >>>> > > can you send arch/*/src/lib/libast/FEATURE/spawn >>>> > > >>>> >>>> > $ cat arch/sol11.sun4/src/lib/libast/FEATURE/spawn >>>> > /* : : generated from >>>> > /root/tmp/ksh.2012-11-21/src/lib/libast/features/spawn by iffe version >>>> > 2012-08-24 : : */ >>>> > #ifndef _def_spawn_ast >>>> > #define _def_spawn_ast 1 >>>> > #define _sys_types 1 /* #include <sys/types.h> ok */ >>>> > #define _hdr_spawn 1 /* #include <spawn.h> ok */ >>>> > #define _hdr_unistd 1 /* #include <unistd.h> ok */ >>>> > #define _hdr_stdlib 1 /* #include <stdlib.h> ok */ >>>> > #define _lib_posix_spawn 2 /* posix_spawn exists and it >>>> > works >>>> > and its worth using */ >>>> > #endif >>>> > $ >>>> >>>> try this >>>> edit src/lib/libast/misc/spawnvex.c and change >>>> #if _lib_posix_spawn < 2 >>>> to >>>> #if _lib_posix_spawn < 99 >>>> if this works then src/lib/libast/features/spawn is inadequate >>> >>> >>> It works on all 3 systems I tested. Thanks. >> >> Doesn't this disable the usage of posix_spawn()? AFAIK ksh93 on >> Solaris MUST use posix_spawn() to be resource efficient and fast. > > Clark?
ksh93/libast's |posix_spawn()| usage now (with ast-ksh.2013-04-02) works again with Solaris 11 and other platforms... the issue was simply a small mistake: -- snip -- +13-04-01 misc/spawnvex.c: fix omitted SPAWN_frame case that caused EINVAL -- snip -- Next steps: - Fix glibc implementation of |posix_spawn()| - Get syscall implementation of |posix_spawn()| to improve peformance (mostly on embedded machines (=less pages touched compared to |vfork()|+|exec()|) or very large NUMA machines (=fewer crosscalls between CPUs to tear-down address space)) ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
