[ale] Restart
Bao Ha
baoh at linuxwizardry.com
Mon Jan 15 14:23:11 EST 2001
Bad idea! Why do you want to reboot the system just to restart
a device? Have you looked into unload/reload the device modules?
Except for watchdog, I would not want any programs to restart
the system.
Bao
-----Original Message-----
From: owner-ale at ale.org [mailto:owner-ale at ale.org]On Behalf Of Stuffed
To: ale at ale.org
Crust
Sent: Monday, January 15, 2001 2:18 PM
To: Chris Fowler
Cc: 'ale at ale.org'
Subject: Re: [ale] Restart
On Mon, Jan 15, 2001 at 11:57:43AM -0500, Chris Fowler wrote:
> I want to restart a Linux device in a c program. Is there a system call I
> can use to tell the kernel to restart the machine immediately. I do not
> need to unmount, I do not need to stop programs. I want to tell the
kernel
> to restart immediately.
#include <sys/reboot.h>
and then you can do things like:
reboot(RB_HALT_SYSTEM);
reboot(RB_POWER_OFF);
reboot(RB_AUTOBOOT);
...etc
- Pizza
--
Solomon Peachy pizzaATfucktheusers.org
I ain't broke, but I'm badly bent. ICQ# 1318344
Patience comes to those who wait.
...It's not "Beanbag Love", it's a "Transanimate Relationship"...
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message
body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list