tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
stop.c
Go to the documentation of this file.
1#include "stop.h"
2#include "../core/io_wrap.h"
3#include "../os/operations.h"
4
5enum run_result run_stop(int proc_id) {
6 bool result = stop_proccess(proc_id);
7 return result ? RUN_OK : RUN_FAILED;
8}
bool stop_proccess(int proc_id)
Stop a process use it ID.
run_result
Result of the execution of a command line.
Definition res.h:6
@ RUN_OK
Definition res.h:7
@ RUN_FAILED
Definition res.h:9
enum run_result run_stop(int proc_id)
Resume running a process.
Definition stop.c:5