-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scott Bren - Processes #383
base: master
Are you sure you want to change the base?
Conversation
@@ -10,7 +10,15 @@ | |||
|
|||
int main(void) | |||
{ | |||
// Your code here | |||
int child = fork(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice job today scott. Good you're trying the many variants of the exec family
|
||
if(child) { | ||
printf("%d", x); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should print something out for the parent.
} else { | ||
|
||
wait(NULL); | ||
for(i = 0; i < 3; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet love that you're paying attention to what's going on.
Scott Bren - Processes
@Tulf