![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Reboot the system
#include <sys/sysmgr.h> int sysmgr_reboot( void );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sysmgr_reboot() function reboots the calling computer. You need to be root for this function to succeed.
The sysmgr_reboot() function doesn't return if successful. If an error occurs, it returns:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
procnto in the Utilities Reference
![]() |
![]() |
![]() |
![]() |