Skip to content

JNTHNN/Minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

19_Minishell

Création d'un shell minimaliste - Shell/Bash / Processus / Descripteur de fichier

Projet réalisé avec @GDelvign

Principe de base

Plan d'action

  1. Réception de la commande
  2. Tokenisation
  3. Parsing
  4. Expand
  5. Execution
  6. Success / Gestion d'erreur
  7. Repeat
Valgrind

Ignorer les leaks de readline + fork

{
    ignore_readline_leaks
    Memcheck:Leak
    ...
    fun:readline
}
{
    ignore_rl_history_leaks
    Memcheck:Leak
    ...
    fun:add_history
}
{
    ignore_forks_leaks
    Memcheck:Leak
    ...
    fun:fork
}

Commande pour executer Valgrind durant l'utilisation du Minishell + logfile

valgrind --leak-check=full \
         --show-leak-kinds=all \
         --track-origins=yes \
         --track-fds=yes \
         --verbose \
         --keep-debuginfo=yes \
         --suppressions=readline.supp \
         --log-file=valgrind-out.txt \
        ./minishell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published