not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 5 個月前paniclemmy.blahaj.zoneimagemessage-square29fedilinkarrow-up1589file-text
arrow-up1589imagepaniclemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 5 個月前message-square29fedilinkfile-text
minus-squareverdare@piefed.blahaj.zonelinkfedilinkEnglisharrow-up47·5 個月前I don’t see a call to fork(), so there’s clearly no child here.
minus-squareElvith Ma'for@feddit.orglinkfedilinkarrow-up19·5 個月前bool isChild() { pid_t result= fork() return (result == 0) }
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up11·5 個月前Nope. 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