510  

  "set-user-ID"     , ID  -
    ,   ID  
  ,      .

 POSIX_SPAWN_RESETIDS   spawn-flags ,  -
 attrp,    ID    .
    ,    ID   -
 .    , ID    -
      ID   
.   ,     "set-group-ID"    -
 , ID      , 
 ID     ,      .

   spawn-flags ,   attrp, 
 POSIX_SPAWN_SETSIGMASK,       
,    spawn-sigmask ,   attrp.

   spawn-flags ,   attrp, -
  POSIX_SPAWN_SETSIGDEF,  ,    spawn-
sigdefaul t   ,         -
 . ,     
  ,       -
   .

,     ,   -
       .

   SIGCHLD, ,    -
  ,    ,  
    POSIX_SPAWN_SETSIGDEF,   -
 spawn-flags ,   attrp,   SIGCHLD,
   spawn-sigdefaul t   .

  SIGCHLD     , -
  ,    SIGCHLD   
          , 
     POSIX_SPAWN_SETSIGDEF, 
  spawn-Flag's ,   attrp,  
SIGCHLD,    spawn_sigdefaul t   .

  a t trp   NULL,    .

  ,         ,
  ,   attrp (   ), 
    ,   
file_actions,         ,  
   fork ()    ,    
          .

THR          posix_spawn ()
 posix_spawnp (),   .

 

        posix_spawn ()   (  
posix_spawnp ())     