it's better to have
EnumType status = ret ? PKGMGR_END_SUCCESS : PKGMGR_END_FAILURE;
SendSignal(PKGMGR_END_KEY, status);