Fork Find

Programming Language:C

Repository: https://github.com/TiagoJoseMagalhaes/fork_find

Description

This project was developed as a part of an operating systems class, and its objective was to develop a piece of software that did effectively the same thing as Linux’s find tool. This was to be achieved through the usage of process forking and data pipes between them. The application starts from the working directory and looks at its contents to see if the desired file is there, if not it creates a fork for all folders in the working directory. This behavior is repeated recursively until either the desired file is found or there are no subfolders to go into. When a child finds the desired file, it transmits its path to its parent process via a pipe, which in turn sends it to its parent recursively until the original process receives the data.