On 02/20/10 09:59, River Tarnell wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Liane Praza:
Have you set CT_PR_INHERIT when creating the contracts so that they
are adoptable?

I saw this, but it wasn't clear if it would work correctly.  My program
is started by SMF; so, when my programs exits, SMF will inherit my
contracts.  Will SMF ignore the fact it now owns the contract, allowing
me to take back ownership later?

  SMF never takes explicit ownership of the sub-contracts created by
  services.

  When a process holding a CT_PR_INHERIT sub-contract exits (naturally
  or because it failed), they are inherited by the contract that
  process was in (normally the contract SMF created for that process).

  If the service doesn't fail because of this, those sub-contracts will
  be available for other processes within that contract to pick up.

  If the service does fail because of this, SMF will hand off those
  sub-contracts to the restarted service's contract, where they will be
  available to be picked up by processes within the new contract.

  Dave

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to