I have a Qt 4 GUI where I need to have a option in a drop-down menu that allows the user to choose to restart the computer. I realize this might seem redunant with the ability t
In Linux:
#define LINUX_REBOOT_CMD_POWER_OFF 0x4321fedc sync(); reboot(LINUX_REBOOT_CMD_POWER_OFF);