MiniDevil As beautiful as a shell
ui_signals.c File Reference
#include "minishell_ui.h"
+ Include dependency graph for ui_signals.c:

Functions

static void handle_ui_sigwinch (int sig)
 Records SIGWINCH in the global signal flag. More...
 
void setup_ui_signals (void)
 Set up SIGWINCH and SIGINT handlers for the UI loop. More...
 

Function Documentation

◆ handle_ui_sigwinch()

static void handle_ui_sigwinch ( int  sig)
static

Records SIGWINCH in the global signal flag.

Parameters
sigSignal number received (SIGWINCH)

Definition at line 20 of file ui_signals.c.

References g_signal.

Referenced by setup_ui_signals().

+ Here is the caller graph for this function:

◆ setup_ui_signals()

void setup_ui_signals ( void  )

Set up SIGWINCH and SIGINT handlers for the UI loop.

  • SIGWINCH is handled by handle_ui_sigwinch() with SA_RESTART
  • SIGINT is ignored so CTRL C doesn't kill the UI

Definition at line 31 of file ui_signals.c.

References handle_ui_sigwinch().

Referenced by init_ui().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Go to the source code of this file.