diff options
author | Dan Cross <cross@gajendra.net> | 2020-01-10 14:44:21 +0000 |
---|---|---|
committer | Dan Cross <cross@gajendra.net> | 2020-01-10 14:54:30 +0000 |
commit | fa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch) | |
tree | 81d26256d152435135bcb1ae43121979a49f5f2b /src/lib9/notify.c | |
parent | 77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff) | |
download | plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2 plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip |
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.
Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/lib9/notify.c')
-rw-r--r-- | src/lib9/notify.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib9/notify.c b/src/lib9/notify.c index c3223875..adb3815b 100644 --- a/src/lib9/notify.c +++ b/src/lib9/notify.c @@ -1,7 +1,7 @@ /* - * Signal handling for Plan 9 programs. - * We stubbornly use the strings from Plan 9 instead - * of the enumerated Unix constants. + * Signal handling for Plan 9 programs. + * We stubbornly use the strings from Plan 9 instead + * of the enumerated Unix constants. * There are some weird translations. In particular, * a "kill" note is the same as SIGTERM in Unix. * There is no equivalent note to Unix's SIGKILL, since @@ -110,7 +110,7 @@ Jmp *(*_notejmpbuf)(void) = getonejmp; static void noteinit(void); /* - * Actual signal handler. + * Actual signal handler. */ static void (*notifyf)(void*, char*); /* Plan 9 handler */ @@ -193,7 +193,7 @@ notesetenable(int sig, int enabled) sigemptyset(&mask); sigaddset(&mask, sig); sigprocmask(enabled ? SIG_UNBLOCK : SIG_BLOCK, &mask, &omask); - return !sigismember(&omask, sig); + return !sigismember(&omask, sig); } int @@ -270,4 +270,3 @@ noteinit(void) notifyseton(sig->sig, !(sig->flags&NoNotify)); } } - |