0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 9 months agorulelemmy.mlimagemessage-square44fedilinkarrow-up1280arrow-down10
arrow-up1280arrow-down1imagerulelemmy.ml0x2d@lemmy.ml to 196@lemmy.blahaj.zone · 9 months agomessage-square44fedilink
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up5·9 months agoSimilarly, $$ is the current PID, $PPID is the parent PID. (Bash)
minus-squareHappyFrog@lemmy.blahaj.zonelinkfedilinkarrow-up3·9 months agoSo ‘kill -9 $$’ is just suicide?
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up5·9 months agoWith suicide, you have a chance to get your affairs in order. kill -9 $$ is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.
Similarly,
$$
is the current PID,$PPID
is the parent PID. (Bash)So ‘kill -9 $$’ is just suicide?
With suicide, you have a chance to get your affairs in order.
kill -9 $$
is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.You can type
seppuku
for that