Skip to content
Snippets Groups Projects
Commit 3d52fed3 authored by 최지원's avatar 최지원
Browse files

Final_1(header)

parent ed7fb4db
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@
typedef int (*built_in_command_do)(int, char**);
typedef int (*built_in_command_validate)(int, char**);
extern int pid_num;
//extern int back_num=0;
extern char running_command[512];
struct built_in_command
{
......
......@@ -7,6 +7,8 @@ struct single_command
char** argv;
};
extern int running;
int evaluate_command(int n_commands, struct single_command (*commands)[512]);
void free_commands(int n_commands, struct single_command (*commands)[512]);
......
......@@ -5,4 +5,5 @@ void catch_sigint(int signalNo);
void catch_sigtstp(int signalNo);
void signal_setting();
#endif // SIGNAL_H_
test 0 → 100755
File added
test.c 0 → 100644
#include <stdio.h>
#include <string.h>
#include <unistd.h>
void main(){
while(1){
printf("background\n");
sleep(5);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment