Skip to content
Snippets Groups Projects
Select Git revision
  • 8ed1fa992c5e8e9aa3694e064db294a5c3f7416c
  • master default
  • undefined
3 results

signal_handlers.c

Blame
  • Forked from sce213ta / mysh-1
    Source project has a limited visibility.
    signal_handlers.c 415 B
    
    #include "signal_handlers.h"
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/wait.h>
    #include <signal.h>
    
    void catch_sigint(int signalNo)
    {	
    	signal(SIGINT, &catch_sigint);
    	printf("\nShell doesn't close!\n");
    	
    	
      // TODO: File this!
    }
    
    void catch_sigtstp(int signalNo)
    {	
    	signal(SIGTSTP, &catch_sigtstp);
    	printf("\nIt doesn't move!\n");
      // TODO: File this!
    }