Skip to content
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

Enhancements to func.sh. Idiot proofed mendel_talk and added some comments. #23

Closed
wants to merge 1 commit into from

Conversation

jgilmore
Copy link
Contributor

I found that even though I know perfectly well to terminate mendel_talk with ^D, my fingers don't always remember, and then I forget why mendel_cmd isn't working and waste time.

So I fixed it to check for "cat" processes started from this terminal before and after, and if there aren't any before and are after, kill it! (sorry, hard sentance to parse, code is easier)

This way it doesn't matter if I forget and hit ^C instead, unless I already have a job running with a "cat" process in it. Which is unlikely, but at least this code won't screw up already running processes.

In theory, I suppose that I could make it check, store the list, and compare. But that's way to much effort for a corner case. I mean, I almost didn't even bother to check for previously running "cat" processes.

Also added a few comments.

@triffid
Copy link
Owner

triffid commented Feb 11, 2011

thanks, pushed. I also added a quick message "press ctrl+D to exit" :)

This pull request was closed.
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.

None yet

2 participants