An error occurred while loading the file. Please try again.
Forked from
Glasgow Haskell Compiler / GHC
13614 commits behind, 557 commits ahead of the upstream repository.
-
Ömer Sinan Ağacan authored
It's no-op on all platforms Reviewers: bgamari, simonmar, erikd, dfeuer Reviewed By: dfeuer Subscribers: dfeuer, thomie, carter Differential Revision: https://phabricator.haskell.org/D4588
Ömer Sinan Ağacan authoredIt's no-op on all platforms Reviewers: bgamari, simonmar, erikd, dfeuer Reviewed By: dfeuer Subscribers: dfeuer, thomie, carter Differential Revision: https://phabricator.haskell.org/D4588
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
RtsSignals.h 1.05 KiB
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 1998-2005
*
* Signal processing / handling.
*
* ---------------------------------------------------------------------------*/
#pragma once
#if !defined(mingw32_HOST_OS)
#include "posix/Signals.h"
#elif defined(mingw32_HOST_OS)
#include "win32/ConsoleHandler.h"
#else
#define signals_pending() (false)
#endif
#if RTS_USER_SIGNALS
#include "BeginPrivate.h"
/*
* Function: initUserSignals()
*
* Initialize the console handling substrate.
*/
void initUserSignals(void);
/*
* Function: initDefaultHandlers()
*
* Install any default signal/console handlers. Currently we install a
* Ctrl+C handler that shuts down the RTS in an orderly manner.
*/
void initDefaultHandlers(void);
void resetDefaultHandlers(void);
void freeSignalHandlers(void);
/*
* Function: awaitUserSignals()
*
* Wait for the next console event. Currently a NOP (returns immediately.)
*/
void awaitUserSignals(void);
#include "EndPrivate.h"
#endif /* RTS_USER_SIGNALS */