not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 month agopaniclemmy.blahaj.zoneimagemessage-square27fedilinkarrow-up1578arrow-down19file-text
arrow-up1569arrow-down1imagepaniclemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 month agomessage-square27fedilinkfile-text
minus-squareverdare@piefed.blahaj.zonelinkfedilinkEnglisharrow-up46·1 month agoI don’t see a call to fork(), so there’s clearly no child here.
minus-squareElvith Ma'for@feddit.orglinkfedilinkarrow-up19·1 month agobool isChild() { pid_t result= fork() return (result == 0) }
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up11·1 month agoNope. The check should be in a while loop
I don’t see a call to
fork(), so there’s clearly no child here.bool isChild() { pid_t result= fork() return (result == 0) }Nope. The check should be in a while loop