particaney 🐸🍲
How would i call it without the path with execlp?
Ohh i need to specify the file twice even with this
particaney 🐸🍲
Thanks alot for the fedback
Sourabh
How would i call it without the path with execlp?
Did you try giving it relative path rather than absolute path?
Anonymous
Yes definitely kernel developers should know of functions not even present in the kernel
particaney 🐸🍲
Did you try giving it relative path rather than absolute path?
Yes i just tryed with relative path and without path and with pull path its the same outcome allways, it does only once what the parent process do and The children never appear. I still wonder why it dosnt get into a infinity loop
Anonymous
Let's say it does execute in an infinite loop
particaney 🐸🍲
Try with execv instead of execlp for parent.
Im not coding anything, im just trying to understand one thing i had in my exam
Sourabh
You do realize what you're doing is dangerous?
We can always control child forking. Thanks to ulimits
Anonymous
In a matter of a few seconds your system has been fork bombed
Sourabh
I guess it must be set right?
particaney 🐸🍲
You do realize what you're doing is dangerous?
Ya its gona crash lol but i would atleast understand it. Now i dont get why it dosnt. And only exit directly after 1 round of parent
particaney 🐸🍲
Ohhh i get it now, thanks
Sourabh
Oh, I see.
particaney 🐸🍲
Sorry, but thanks alot you solved my question.
Sourabh
In a matter of a few seconds your system has been fork bombed
But his program was waiting for the child process to complete. I guess, it will just continue in a super loop and not a fork bomb.
Anonymous
Yeah thanks as if we call exec() inside the kernel
Ofcourse you do. How do you think systemd works inside the Linux kernel?
Sourabh
Exactly!
Som
Anonymous
bo.setName() -> bo.getName()
Som
Help me out guys!
Anunay
In cout
Som
Yes it worked Thanks a lot guys for helping me again!
Som
@clannad @anunaym14 thankx guys ❤
Anunay
👍
Henry
please can someone write a program to calculate octal value of a decimal
klimi
please can someone write a program to calculate octal value of a decimal
surely someone can... and it has been done many times before,,,, why do you ask?
Anunay
please can someone write a program to calculate octal value of a decimal
We are here to help you out with your issues and not to solve your homework.
Anunay
Please specify the issue that you are facing.
Sourabh
please can someone write a program to calculate octal value of a decimal
Simplest way is to take input as string in decimal and use strtol to convert back to octal.
noop
God have mercy on your poor colleagues 😂
Dima
he’s so… harsh
Dima
😹😹
Mar!o
Dima
lmao
︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎
Som
Hey @MissRose_bot i cant do anything in this matter I dont have high end camera
Anonymous
Hey @MissRose_bot i cant do anything in this matter I dont have high end camera
Actually the rule here is to paste your code you can't take a picture of it
Som
Oh sorry from next time i will try to paste it
Dima
lol bruh
Anonymous
Hey @MissRose_bot i cant do anything in this matter I dont have high end camera
You're replying to a bot, a piece of software, you know it?
Som
I guess i got no one to talk with so bot is my only friend
Anonymous
Lmao a young philosopher in an existential crisis
Patrick
Why does GDB sometimes jump around when using "next"? I swear I once managed to fix it but now I can't remember. It's meant to go to the next source line but it seems to 'jump' backwards a lot.
Guy
Have you tried using nexti? I'm currently debugging with GDB, and nexti works pretty well. Not sure what the difference is so sorry I can't really help 😅
Patrick
Even nexti skips backwards in source sometimes
Patrick
so it's the way my program gets compiled, I suppose, but it doesn't make sense. It's skipping back to unrelated source lines after a return
Guy
Even nexti skips backwards in source sometimes
hmm doesn't really make sense it goes backwards
Patrick
This is after using "next"
Guy
can you send the function's code? or atleast the relevant part
Patrick
can you send the function's code? or atleast the relevant part
https://pastebin.com/xRWe4FQB In this it would go line 32, 33, 34, 32, proper return
Patrick
I've had it happen in another C++ project too though. Even with -O0
Guy
https://stackoverflow.com/questions/24388942/why-is-gdb-jumping-back-when-debugging-with-c-source-codes, perhaps that's the issue?
Guy
try compiling without optimizations
Patrick
Even with `-Og`it's happening. And it's only today I've noticed it will skip back to where the return value was used previously
Hermann
why is i use uint8, nettle cast my uint8 value?
Hermann
Ulu
hi
Chirag
Can anyone suggest me best IDE for C programming
Henry
visual studio code
Chirag
visual studio code
It take 2.1GB of Data to download and install
Chirag
I want simple and stable
Chirag
It is like zip file inside this there are different package of more than 2 Gb
Chirag
Thanx for this I will try this
Anonymous
Hello, in C++ what is the difference between a function and an inline function And what benefit is there in using an inline function over a normal function?
Đỗ
inline function increase the speed when it be called
Đỗ
because it's sort of prefetch in memory of program
Đỗ
and its alloc and initial implement in stack memory, instead heap
Đỗ
so when you decide to write a function, 1st rule make it's very necessary
Đỗ
and as short as possible
Artöm
Hello, in C++ what is the difference between a function and an inline function And what benefit is there in using an inline function over a normal function?
Inline function is allowed to be defined in header, not-inline not-static function should only be declared
Artöm
and its alloc and initial implement in stack memory, instead heap
What is it about heap? Not-inline functions dont use heap unless asked