Espresso 0.0.2c
This commit is contained in:
@ -3,13 +3,18 @@
|
||||
#include <processes.h>
|
||||
|
||||
|
||||
int32_t next_id = 9; /* 0 through 8 are reserved for kernel operations */
|
||||
pid_t next_id = 1; /* start at 1 */
|
||||
|
||||
int32_t make_process(char* name, char* group, elf_executable_t* exe)
|
||||
pid_t make_process(char* name, char* group, elf_executable_t* exe)
|
||||
{
|
||||
pid_t ret = (pid_t) 0;
|
||||
|
||||
if (!name || !group || !exe)
|
||||
{
|
||||
return -1;
|
||||
return ret; /* ret is already zero */
|
||||
}
|
||||
return 0;
|
||||
|
||||
next_id++;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user