Top "Shutdown" questions

This refers to the process where the system state is systematically (and preferably gracefully) changed to the fully inactive state.

Win32 API analog of sending/catching SIGTERM

Under POSIX OS there is signal API that allows to send a signal to process to shut it down with …

windows winapi posix shutdown sigterm
Application.Current.Shutdown() vs. Application.Current.Dispatcher.BeginInvokeShutdown()

First a bit of background: I have a WPF application, which is a GUI-front-end to a legacy Win32-application. The …

c# wpf multithreading shutdown dispatcher
Shutdown netty programmatically

I'm using netty 4.0.24.Final. I need to start/stop netty server programmatically. On starting the server, the thread gets blocked …

java netty server shutdown
C++ Error: ISO C++ Forbids Comparison Between Pointer and Integer [-fpermissive]

I am a beginner C++ Programmer With Very little knowledge about C++. I Have Been Creating a Program on The …

c++ shutdown dev-c++
How to detect whether Windows is shutting down or restarting

I know that when Windows is shutting down, it sends a WM_QUERYENDSESSION message to each application. This makes it …

c++ winapi api shutdown restart
How to shutdown Derby in-memory database Properly

I'm using derby as an embedded database. Furthermore, I'm using it's in-memory database option for my unit tests. What I …

java derby shutdown in-memory-database
How to send Shutdown command to process through CMD Prompt on Windows

I'm currently working as software developer and I'm using bunch of tools, so I need to close them all when …

windows command-line batch-file shutdown
How would I create a command to shutdown my Discord.py Bot?

I have rewritten my existing Discord Bot so that commands work via @client.command. Here is an example of the …

python bots discord shutdown repl.it
How to gracefully shut down monogodb 0.8 running in docker

I am starting mongodb via the ENTRYPOINT config in a docker file. It works fine. However, when I execute: docker …

mongodb docker shutdown
How to hibernate windows pc from cmd

How can I set my computer to hibernate after, say 18000 seconds? This doesn't work: shutdown -h -t 18000

windows cmd shutdown system-shutdown