<%
    from pwnlib.shellcraft.thumb.linux import getppid, kill
    from pwnlib.shellcraft.common import label
%>
<%docstring>
Kills its parent process until whatever the parent is (probably init)
cannot be killed any longer.
</%docstring>
<%
    killparent_loop = label('killparent')
%>
${killparent_loop}:
    ${getppid()}
    ${kill('r0')}
    cmp r0,r0
    beq ${killparent_loop}
