<p></p>
<p dir="auto"><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> — have you had the chance to consider a better solution to this issue?<br>
I am thinking of going through the various modules and see how they check for rank:</p>
<p dir="auto">/* ???? have an escape for a module if the module needs to do<br>
* does something for PROC_INIT, PROC_MAIN and rank > 0 (and small negative integers PROC_TCP etc)<br>
* then do nothing and return here ???? */<br>
if (rank < PROC_MAIN_ONLY) return 0;  // PROC_MAIN_ONLY == -128</p>
<p dir="auto">Then to apply this PR I could set</p>
<pre><code>PROC_POST_FORK = -129
// other new ranks can be created with values < -128 and all modules would not be affected
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2919#issuecomment-968177400">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ2RLTMTTGJXPIYSHTUL33STANCNFSM5HNXC72Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZOR46LIIJY4OTDBV3TUL33STA5CNFSM5HNXC722YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHG2TN6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2919#issuecomment-968177400",
"url": "https://github.com/kamailio/kamailio/pull/2919#issuecomment-968177400",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>