Skip to content

Conversation

@smbren
Copy link

@smbren smbren commented Feb 20, 2019

Scott Bren - Processes

@Tulf

int main(void)
{
// Your code here
int child = fork();
Copy link

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);
}

Copy link

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++) {
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants