<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Systemd 217] System reboots on shutdown"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85724#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Systemd 217] System reboots on shutdown"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85724">bug 85724</a>
from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
<pre>OK, let's drill down then...
If you compile and run the following program, does it also reboot?
############# reboot-force.c ###########
#include <stdio.h>
#include <unistd.h>
#include <sys/reboot.h>
int main(void) {
reboot(RB_POWER_OFF);
perror("poweroff");
return 1;
}
// gcc -Wall -o reboot-force reboot-force.c && sudo ./reboot-force
#########################################</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>