From 3ac32b7f7b2d8751bc8c15a1391080043f193f4d Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Mon, 12 Oct 2020 14:40:45 +0200 Subject: [PATCH] Assignment 1: Mention fork, exec, pipe, dup2 --- assignment1/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignment1/README.md b/assignment1/README.md index a2c7244..157513c 100644 --- a/assignment1/README.md +++ b/assignment1/README.md @@ -177,7 +177,7 @@ You may assume that `diff` and `patch` are present and available via `PATH`. **Hint:** It may be a good idea to create a dedicated class for invoking shell commands like `diff` and `patch`. Simply using `system(3)` may not give you enough control over the process as you also need to interact with `stdin` / `stdout`. -Consider using `popen(3)` and getting some inspiration from [Go's `exec` package](https://golang.org/pkg/os/exec/) or [Python's `subprocess` module](https://docs.python.org/3/library/subprocess.html). +Consider using `popen(3)` (or even `fork(2)`, `exec(2)`, `pipe(2)`, and `dup2(2)`) and getting some inspiration from [Go's `exec` package](https://golang.org/pkg/os/exec/) or [Python's `subprocess` module](https://docs.python.org/3/library/subprocess.html). ## Testing