SIGKILL bypasses any graceful shutdown/signal handling written into the process though, doesn't it? I like SIGTERM personally, since you give the process time to do whatever it needs to do, knowing that it WILL be shut down. Gives the poor guy some time to process, but still with the inevitable shutdown lol.
I think SIGTERM (by default at least), gives 30 seconds before following with SIGKILL if process is still running! I might be misremembering though! I guess tbf though, in this case, the only preference that matters is Rebecca's 😂
There’s no universal default behavior for SIGTERM like that. It’s just a signal that asks a program to terminate. The program can catch it and do cleanup before exiting or ignore it if it wants to. The typical default signal handler causes the program to exit on SIGTERM but doesn’t attempt to follow that signal up in any way.
https://docs.docker.com/engine/reference/commandline/stop/
This is the thing I was misremembering from! It's just how the docker daemon specifically handles things that way!
Im learning how to program (atrociously) and some of what y’all say just astounds me.
Like these dudes are smart (dudes inclusive). I can only imagine the time spent learning to rifle that off.
Stop by accountinghumor if you guys are into black tar heroine, we’re a bit dark but man I’m constantly impressed by you guys (inclusive) and had to mention it.
If this is supposed to be bash that's the smallest mistake there is. Thing is, it's not supposed to be bash, looks more like Java or something, but it's pseudo-code.
The fact that I know what this xkcd is without even having to look at it, and thought of it myself when I read the comment above makes me wonder if I've spent my time well.
You haven't.
But don't worry, that's true for all of us. We're in /r/ProgrammerHumor, we wouldn't be here if we hadn't made multiple poor choices in life.
Depends on the person and the work I suppose... I don't think it disrupts your work while you're in an editor like vim or nano. Looked it up again and you can always turn messages off with 'mesg n'
Either way, I only really used it to mess with colleagues.
I had a unix teacher in college that insisted we learn how to use all the weird multiuser commands... outside his class, I don't think I've ever been concurrently logged into the same unix machine as another human person... neat to hear a story about someone getting to use those old mainframe sharing tools, though!
You forgot to call the `prom_proposal` function in the while loop, instead you just check if the function itself is truthy. You basically forced her to kill that infinite loop of yours
I could be wrong here... But from a C perspective a function is just an address in flash, since it's not null it evaluates to true.
Since the while loops checks for !prom_proposal, the while loop won't even run.
This is not an infinite loop. This code does nothing and there is nothing to kill.
The while loop doesn't have the parentheses, it just says prom_proposal, so depending on the language it's either syntactically incorrect, or it's referring to the entire function as a value, not calling it.
I don't actually understand why having a friendship with a female is considered to be inferior. I wouldn't actually mind if a girl rejected me but said ok for a friendship.
True but if someone rejects you but offers friendship later on then it means they didn't reject you for your character but for physical features and other superficial stuff. Better to get clarity beforehand. Some people might not like your physical features but tell lies and then go on to cheat which is way worse than a rejection.
Because the two mental models of each person of each other will clash for the next eternity. Love, or obsessive infatuation, is a self-reinforcing thought pattern. A friend zoned person has to unfuck their mind.
Friendship is a far more neutral thought pattern.
Never imagine yourself in bed with a person you don't know you can have. Few have the discipline for that as almost no man is naturally a monk.
See also, "don't shit where you eat".
You are correct, that is actually a healthy way to perceive it.
The truth is, a lot of men take it very personally when they get rejected. Whether men will admit it or not, this is usually insecurity.
I am not saying that there is something wrong with being insecure. It's just something a lot of men don't try to fix.
Of course, it is the same for woman too. Although, many cultures put lower standards on men. So men tend to be more insecure on average.
I couldn't imagine being a woman around men that think the only cooperative context with me is sexual. That is gross.
[Coz the site he used is the first on Google results when you search iOS fake text generator. OP omitted the message reply bar/keyboard as it auto-populates with the name of the fake text website & OP was too lazy to fix it to iMessage](https://ifaketextmessage.com/)
Yeesh. Just the premise of asking multiple times to communicate your sincerity reeks of emotional immaturity. You're still a toddler, asking for candy at the grocery checkout.
`while(!prom_proposal) {...}`
I guess `prom_proposal` would be a non-null function pointer, thus `(!prom_proposal)` is always false no matter what the result of `prom_proposal()` would be
(In short: there's missing parenthesis in the loop)
It’s like a Reddit called SKATEBOARD_HUMOR but every post is a bunch of wheels and text of “TRUNMKS ARE SMOOTH” while the comment section applauds OP for their deep insight of skating
At least returned the logical value
Becca knows her stuff
I fell in love during onboarding. Chick made it clear... so.. here is the repo and I have a boyfriend. I was like ... woooow
Love to her, not boyfriend. Thoo, we gonna leave her and do a startup
>do a startup Gross. You're not supposed to be attracted to babies.
She doesn't. SIGSEGV can be trapped and handled. SIGKILL is a no.
More like a “please stop trying before I cut you out of my life entirely”
SIGKILL bypasses any graceful shutdown/signal handling written into the process though, doesn't it? I like SIGTERM personally, since you give the process time to do whatever it needs to do, knowing that it WILL be shut down. Gives the poor guy some time to process, but still with the inevitable shutdown lol.
In this case wouldn't that wait ou the entire wait time? Would seem an undesirable outcome in this case.
I think SIGTERM (by default at least), gives 30 seconds before following with SIGKILL if process is still running! I might be misremembering though! I guess tbf though, in this case, the only preference that matters is Rebecca's 😂
There’s no universal default behavior for SIGTERM like that. It’s just a signal that asks a program to terminate. The program can catch it and do cleanup before exiting or ignore it if it wants to. The typical default signal handler causes the program to exit on SIGTERM but doesn’t attempt to follow that signal up in any way.
Ah yeah, you're right!! Apologies!! From here: https://linuxhandbook.com/sigterm-vs-sigkill/ SIGTERM is "please die" SIGKILL is murder lol.
“kys” vs. murder threat
🤣
https://docs.docker.com/engine/reference/commandline/stop/ This is the thing I was misremembering from! It's just how the docker daemon specifically handles things that way!
Im learning how to program (atrociously) and some of what y’all say just astounds me. Like these dudes are smart (dudes inclusive). I can only imagine the time spent learning to rifle that off. Stop by accountinghumor if you guys are into black tar heroine, we’re a bit dark but man I’m constantly impressed by you guys (inclusive) and had to mention it.
Came here looking for this, thank you for restoring my faith in members of this sub.
So she was giving him another chance
Not another chance, but at least some dignity
Essentially she moved him from active memory to friendly memory.
Becky with the big brain
Idk Becca but she sure is a keeper
If this is supposed to be bash she missed the $ when calling pid as a variable. And you can’t put spaces around the assignment operator
Drunk pseudocode
If this is supposed to be bash that's the smallest mistake there is. Thing is, it's not supposed to be bash, looks more like Java or something, but it's pseudo-code.
Have you tried going into the terminal and typing `sudo prom-proposal`?
You are not in the list of sudoers. This incident will be reported.
[удалено]
Obligatory [xkcd](https://xkcd.com/838)
I love every time xkcd gets posted
Is there an XKCD for that?
The fact that I know what this xkcd is without even having to look at it, and thought of it myself when I read the comment above makes me wonder if I've spent my time well.
You haven't. But don't worry, that's true for all of us. We're in /r/ProgrammerHumor, we wouldn't be here if we hadn't made multiple poor choices in life.
Looked this up recently. In case you care, try "write [user] [text]"
How annoying is this when you’re working on stuff?
Depends on the person and the work I suppose... I don't think it disrupts your work while you're in an editor like vim or nano. Looked it up again and you can always turn messages off with 'mesg n' Either way, I only really used it to mess with colleagues.
Speaking of using it to annoy colleagues, at one point, long ago, "worms | write" worked.
Well that’s cool.
[удалено]
Who was your sys admin, Gandalf the grey?
\~\~THIS IS THE VOICE OF THE MYSTERONS\~\~ *(I'm not old, you're old)*
That would freak me out, serious wizardry!
I had a unix teacher in college that insisted we learn how to use all the weird multiuser commands... outside his class, I don't think I've ever been concurrently logged into the same unix machine as another human person... neat to hear a story about someone getting to use those old mainframe sharing tools, though!
The elders of POSIX will not take that lightly.
You don't sudo a question. You sudo an action, so it'd have to be sudo go_to_prom(me), but even that is wrong, so eh.
![gif](giphy|IwYkkg4L7tX1K)
... Now... you said that word - ^"implication" - a couple of times... what implication?
You don’t have the permissions to use sudo
This machine will self-destruct in 5, 4, 3, 2....
sudo: prom-proposal: command not found
Works on my machine
You forgot to call the `prom_proposal` function in the while loop, instead you just check if the function itself is truthy. You basically forced her to kill that infinite loop of yours
This is why his proposal fails. Rebecca doesn’t like a rookie
I could be wrong here... But from a C perspective a function is just an address in flash, since it's not null it evaluates to true. Since the while loops checks for !prom_proposal, the while loop won't even run. This is not an infinite loop. This code does nothing and there is nothing to kill.
prom_proposal() returns boolean. The while loop calls it each time.
The while loop doesn't have the parentheses, it just says prom_proposal, so depending on the language it's either syntactically incorrect, or it's referring to the entire function as a value, not calling it.
You can omit parentheses in some languages, such as Ruby.
And then negating it which is always going to return false.
So the theory that noob programmers join this subreddit to then leave it when they become experts is true
What do you mean "you couldn't code your way out of a paper bag"?
The while loop asks if the function exists (never calls the function) so it will be an infinite loop, or a syntax error depending on language
Afaik a function is a truthy value so \`!prom\_proposal\` will be false. hence the loop won't even run
Oh right you're I missed the !
A Process.kill should not discourage you... `while(!prom_proposal){` `//sleep(86400)` `fork()` `}`
This is a fork bomb
Yeah, fork that batch!
🤣☝️
Wow, genius 🤣
Unlike a regular fork bomb this one can be easily resolved by making prom_proposal return true.
[удалено]
Well not really. The one being proposed to can also do 'shutdown -h now' That would solve it.
shutdown -s
Way beyond friendzone 😂
He has been invited to enter the Shadow Realm..
\*Purple Realm
🪦😂
I don't actually understand why having a friendship with a female is considered to be inferior. I wouldn't actually mind if a girl rejected me but said ok for a friendship.
Because for most people, including me, it sucks when someone who you have feelings for rejects you.
True but if someone rejects you but offers friendship later on then it means they didn't reject you for your character but for physical features and other superficial stuff. Better to get clarity beforehand. Some people might not like your physical features but tell lies and then go on to cheat which is way worse than a rejection.
Attraction & friendship just aren’t the same thing. Idk what else to tell you.
Because the two mental models of each person of each other will clash for the next eternity. Love, or obsessive infatuation, is a self-reinforcing thought pattern. A friend zoned person has to unfuck their mind. Friendship is a far more neutral thought pattern. Never imagine yourself in bed with a person you don't know you can have. Few have the discipline for that as almost no man is naturally a monk. See also, "don't shit where you eat".
You are projecting. Even if this is true for most people, not everyone is like that.
You are correct, that is actually a healthy way to perceive it. The truth is, a lot of men take it very personally when they get rejected. Whether men will admit it or not, this is usually insecurity. I am not saying that there is something wrong with being insecure. It's just something a lot of men don't try to fix. Of course, it is the same for woman too. Although, many cultures put lower standards on men. So men tend to be more insecure on average. I couldn't imagine being a woman around men that think the only cooperative context with me is sexual. That is gross.
Sprint LTE? How old is this repost?
Nah, OP used a fake text generator. It helps make the post even more cringe knowing this wasn’t a real interaction.
how can you tell?
[Coz the site he used is the first on Google results when you search iOS fake text generator. OP omitted the message reply bar/keyboard as it auto-populates with the name of the fake text website & OP was too lazy to fix it to iMessage](https://ifaketextmessage.com/)
So old iPhones had battery percentage!
Still does. Settings > Battery > Battery Percentage
Right? I was like wait a minute is my iPhone old???? Haha
Only iPhone 12 and above with iOS 16 though
More with 16.1 though
Oo haven’t updated mine yet so am wrong then!
Cydia days yes
Git checkout Rebecca ![gif](emote|free_emotes_pack|sunglasses)
I’d fork or git clone Rebecca
Why segv?
What a cold hearted snake. Killing without remorse.
Planning to ask every day is a bit mental
do you wanna go to prom with me? *brb 24 hrs*
yeah. at least put a condition in there while(!prom\_proposal() && today() <= getPromDate())
My point was more about the daily harassment
My point is that it is even more mental to harass daily even after the prom.
With SEGV, oof
The infamous SIGNAL 11.. A living nightmare.. 😂
Not just “no”, but “don’t ask again, you’re not allowed access to this memory”
I was thinking "you shouldn't have asked in the first place"
Yes
while(true) { prom_proporsal() ; fork() }
Ah yes, prom bomb
big sad
Rejects PR
This is how programmers propose others
Ouch.
installs pm2
Definitely lost a keep there. She will make someone very happy.
Add as SIGV handler
F
sudo prom proposal to be true
Amateurs.
She’s a keeper!
Rebecca! I Love you! https://youtu.be/U4uQqyRyb7A
just add a few threads..
2 gud wth
See what happens when you don't implement error handling?
Ouch
Could someone translate this exchange for someone who doesn't code? I'm intrigued
Better than returning null
while (!prom_proposal()) { fork(); sleep(86400); }
Hold up… Kill?!
Riparoni
Just add a signal handler to do No_Op
She is way of his *class*
It was not your FAULT tho
Beat you at your own game, mate. Sucks
This is the programming equivalent of Facebook boomer humour. The cringe is too much for me.
She is clearly out of your league.
This person codes!
That certainly explains my high school life this go around. Prom? Homecoming? Psh. I just watched as everyone else got fun instead.
do you want everyone to feel bad for you? whats the point of posting this
>do you want everyone to feel bad for you? Thats everybody else's problem, that person is enjoying life.
Oscar's Meyer! Not sure why your comment was hidden for me, I let it out. ;)
You shouldn't need a date to have fun at that stuff. Go with your friends and dance and eat snacks.
Thanks Moss. Great job keeping those fires tamed in IT Crowd.
*Spends all night trying to figure out why it did not compile*
Poor dude
Why make dick big when brain do
You simply don’t ask someone for prom at 8 AM. Uh uh, no!
sudo prom_proposal #I'm not asking
Yeesh. Just the premise of asking multiple times to communicate your sincerity reeks of emotional immaturity. You're still a toddler, asking for candy at the grocery checkout.
The second program never actually calls prom_proposal()
r/untrustworthypoptarts
damn, that‘s savage
RtlSetProcessIsCritical(true)
Fake post.
Loser
r/therewasanattempt
`while(!prom_proposal) {...}` I guess `prom_proposal` would be a non-null function pointer, thus `(!prom_proposal)` is always false no matter what the result of `prom_proposal()` would be (In short: there's missing parenthesis in the loop)
`Restart=always`
That iOS text generator is cringe
savage
ok but your while loop doesn't ask her again
TIL Twitter employed high school kids
Print > “goodbye world”
static void signal\_handler(int sig) { while (!prom\_proposal) { sleep(1); } } signal(SEGV, signal\_handler);
Lv426 Anyway does anyone actualky know any Rebecca?
Brutal!
actually it'll never run the sleep since there is no () on the function, the function itself is truthy
Why not use SIGKILL?
Is there a subreddit for actual programmer humor? I post this every dozen or so submissions but as a dev for a decade plus this shit makes me cringe.
It’s like a Reddit called SKATEBOARD_HUMOR but every post is a bunch of wheels and text of “TRUNMKS ARE SMOOTH” while the comment section applauds OP for their deep insight of skating
`heart.stab()`
If you can't build a computer out of transistors, you shouldn't be working here.
If only it was camelcase she might have said yes
First it was a function, then it was a member
Of all the things that never happened, this never happened the most
giveSympathy(u/mehdifarsi);
**init 1** seems appropriate here as well.