I'm writing/debugging a shell, in C, that runs on a while(1) loop, and every time I exit the shell, it closes the terminal, using exit(), that I used to run the executable so I constantly have to open another terminal and cd back to the directory of my workspace in order to continue working. I figured this would be a good reason to learn how I could open another terminal process at my current working directory.
PS. I know a better solution, for efficiency's sake, would be learning how to end my executable without closing my terminal, but that's not what I'm asking.