💾 Archived View for bbs.geminispace.org › u › MrSVCD › 15490 captured on 2024-05-10 at 13:01:16. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

➡️ Next capture (2024-05-26)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🚂 MrSVCD

Re: "So, I tried to fumble a little with Linux syscalls and..."

In: s/Linux

Does your program let programs to shut down clearly?

🚂 MrSVCD

Mar 05 · 2 months ago

3 Later Comments ↓

🔭 DocEdelgas [OP] · Mar 06 at 00:13:

Not really. Rather, it powers off the system in an instant.

🚂 MrSVCD · Mar 06 at 08:53:

Ah, init systems are responsible for both bringing up and down your system.

For example letting databases to shut down in a known state so that it can continue with all the data intact. While sync() system call might look like it would do that but if it is at all like sync command it only affects filesystems.

📷 sjlxndr · Mar 08 at 01:29:

this is not kill (1) it is more like murder (8) 😅

Original Post

🌒 s/Linux

So, I tried to fumble a little with Linux syscalls and tried to implement a program that restarts the computer. [preformatted] After a quick, successful test, I checked how others implement the reboot. To my surprise, busybox tries to send a signal to init instead of using the reboot syscall, like I did. This makes me wonder, why that is.

💬 DocEdelgas · 4 comments · 1 like · Mar 05 · 2 months ago