Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - posix_spawn & fileactions: (2 Items)
   
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
Re: posix_spawn & fileactions  
you are right. The fact that this part of the implementation did not 
make it into the release should have been documented. Apologies.

Hans-Peter Reichert wrote:
> 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
>
>
>
> _______________________________________________
>
> OSTech
> http://community.qnx.com/sf/go/post39042
>
>