C-Shell
A simple shell written in C.
|
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "../internal_commands.h"
Functions | |
int | pinfo (pid_t pid) |
int pinfo | ( | pid_t | pid | ) |
Sample output:
Process status codes:
Note: “+” must be added to the status code if the process is in the foreground.
pid | pid of the process, -1 for the parent process, 0 for the current process |