this post was submitted on 23 Mar 2026
561 points (98.4% liked)

Programmer Humor

30585 readers
4417 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

https://defcon.social/@fortyseven/116279569744717982

i miss when the law was trying to seem serious

you are viewing a single comment's thread
view the rest of the comments
[โ€“] elvith@feddit.org 17 points 1 day ago (1 children)
bool isChild() {
  pid_t result= fork()
  return (result == 0)
}
[โ€“] SpaceNoodle@lemmy.world 9 points 1 day ago

Nope. The check should be in a while loop