• 2 Posts
  • 41 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle
  • CameronDev@programming.devtolinuxmemes@lemmy.worldNo Mercy
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    12 hours ago

    I think that should do it. I’ll try later today and report back.

    Of course, this risks getting into an even worse state, because if the parent later tries to correctly wait for its child, the call will hang.

    Edit: Will clean up the orphan/defunct process.

    If the parent ever tried to wait, they would either get ECHILD if there are no children, or it would block until a child exited.

    Will likely cause follow on issues - reaping someone elses children is generally frowned upon :D.


  • CameronDev@programming.devtolinuxmemes@lemmy.worldNo Mercy
    link
    fedilink
    arrow-up
    67
    ·
    edit-2
    12 hours ago

    Zombie processes are already dead. They aren’t executing, the kernel is just keeping a reference to them so their parent process can check their return code (waitpid).

    All processes becomes zombies briefly after they exit, just usually their parents wait on them correctly. If their parents exit without waiting on the child, then the child gets reparented to init, which will wait on it. If the parent stays alive, but doesn’t wait on the child, then it will remain zombied until the parent exits and triggers the reparenting.

    Its not really Linux’s fault if processes don’t clean up their children correctly, and I’m 99% sure you can zombie a child on redox given its a POSIX OS.

    Edit: https://gist.github.com/cameroncros/8ae3def101efc08be2cd69846d9dcc81 - Rust program to generate orphans.



  • I don’t hate all public cameras, I live in an area with lots of them, and most are fine enough.

    This one in particular irks me because it doesn’t serve a purpose beyond voyeurism. It doesn’t cover the any of the persons property, or any entranceways to their property. Its only for monitoring people in the street. It might be technically a public places, and technically legal for anyone to record, but I really don’t think that makes it a good idea for everyone to just record everything.

    I have seen kids running around naked in their front yard just down the road from this camera, so that also raises questions.

    I’d prefer if surveillance of public places was left to law enforcement, at least there is a theoretically some form of oversight.















  • Are you from Tuya? They seem hellbent on locking their stuff down to the cloud.

    Perhaps point out to your management that IOT is an enthusiast driven market. If you appease the enthusiasts, they will recommend your products to their less technically inclined friends.

    Enthusiasts want both: a good initial software ecosystem, and the option to break out of that if required. If your company can offer that, even if it involves voiding the warrenty, we’ll buy and recommend their stuff.

    In the case of Tuya, their stuff was historically super easy to open, solder some jumpers and flash (or exploit the OTA to flash). I bought loads of their power boards and lights. In some ways I was an ideal consumer, I bought their stuff, voided the warrenty immediately (so no support calls), and never used their cloud, so didn’t waste their resources. Now they are making it near impossible, and I won’t touch their stuff.

    All that said, good luck, your gonna need it.