Hans-Peter Reichert
|
posix_spawn & fileactions
|
Hans-Peter Reichert
09/30/2009 5:51 AM
post39042
|
posix_spawn & fileactions
we're using posix_spawn() to start procsses with specific user credentials.
Doing this we had to change the old spawn fdmap logic to that posix style of adding fileactions.
After some hard starting we had to realize that posix_spawn_file_actions_addopen() is not working.
Looking at procmgr_posic_spawn.c you'll see this:
case posix_file_action_type_OPEN:
/* FIX ME - for now silently ignore. Should we fail ? */
break;
My suggestions are:
1st - Documentation should mention that posix_...addopen() is not supported
2nd - libc posix_.._addopen() should probably return an ENOTSUP on trying to use it
3rd - procmgrs add_fdmap() should maybe realy fail
/hp
|
|
|