readme: create Ctrl-Alt-Del and improve SysRq

This commit is contained in:
Ciro Santilli
2018-05-20 15:32:44 +01:00
parent 9cec69df1e
commit 2ecc6dadb4
3 changed files with 148 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
* https://stackoverflow.com/questions/28812514/how-to-shutdown-linux-using-c-or-qt-without-call-to-system
**/
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <sys/reboot.h>
#include <unistd.h>