From 10ad622dc2a9fb6563fab13719ead8baf15ff9e4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 17 Apr 2017 16:13:32 +0200 Subject: Spelling fixes in comments, documentation, tests and examples By klemens Signed-off-by: Denys Vlasenko --- docs/sigint.htm | 10 +++++----- docs/style-guide.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/sigint.htm b/docs/sigint.htm index e230f4df7..d656aeb8c 100644 --- a/docs/sigint.htm +++ b/docs/sigint.htm @@ -45,7 +45,7 @@ intention. Required knowledge: You have to know what it means to catch SIGINT or SIGQUIT and how -processes are waiting for other processes (childs) they spawned. +processes are waiting for other processes (children) they spawned. @@ -366,7 +366,7 @@ signal, it has to take care of communicating the signal status itself.

Some programs don't do this. On SIGINT, they do cleanup and exit -immediatly, but the calling shell isn't told about the non-normal exit +immediately, but the calling shell isn't told about the non-normal exit and it will call the next program in the script.

As a result, the user hits SIGINT and while one program exits, the @@ -446,7 +446,7 @@ handlers, so it is portable. trap command. Here, the same as for C programs apply. If the intention of SIGINT is to end your program, you have to exit in a way that the calling programs "sees" that you have been killed. If -you don't catch SIGINT, this happend automatically, but of you catch +you don't catch SIGINT, this happened automatically, but of you catch SIGINT, i.e. to do cleanup work, you have to end the program by killing yourself, not by calling exit. @@ -466,7 +466,7 @@ files (which isn't really portable in C, though). bourne shell. Every language implementation that lets you catch SIGINT should also give you the option to reset the signal and kill yourself. -

It is always desireable to exit the right way, even if you don't +

It is always desirable to exit the right way, even if you don't expect your usual callers to depend on it, some unusual one will come along. This proper exit status will be needed for WCE and will not hurt when the calling shell uses IUE or WUE. @@ -565,7 +565,7 @@ comments the scripts echo. What happens when a shellscript called emacs, the user did not use C-c and the script has additional commands in it? What happens if a non-interactive child catches SIGINT? -To behave properly, childs must do what? +To behave properly, children must do what? diff --git a/docs/style-guide.txt b/docs/style-guide.txt index 10ed893dc..9eed7f125 100644 --- a/docs/style-guide.txt +++ b/docs/style-guide.txt @@ -329,7 +329,7 @@ With "const int" compiler may fail to optimize it out and will reserve a real storage in rodata for it! (Hopefully, newer gcc will get better at it...). With "define", you have slight risk of polluting namespace (#define doesn't allow you to redefine the name in the inner scopes), -and complex "define" are evaluated each time they uesd, not once +and complex "define" are evaluated each time they used, not once at declarations like enums. Also, the preprocessor does _no_ type checking whatsoever, making it much more error prone. -- cgit v1.2.3