Skip to content

Commit 7e2483c

Browse files
committed
Fix typos from #26666
1 parent f44275f commit 7e2483c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

system/lib/libc/emscripten_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C" {
3030
#endif
3131

3232
// Pending signals for the current thread. This gets populated when a signal
33-
// is raised but its blocked by pthread_sigmask.
33+
// is raised but it's blocked by pthread_sigmask.
3434
extern thread_local sigset_t __sig_pending;
3535

3636
_Noreturn void _abort_js(void);

test/pthread/test_pthread_sigmask.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void *thread_start(void *arg) {
8181
}
8282
pthread_mutex_unlock(&lock);
8383

84-
// Now unlock all signals andwe should recieve SIGTERM here.
84+
// Now unlock all signals and we should receive SIGTERM here.
8585
printf("Unblocking signals\n");
8686
sigfillset(&set);
8787
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
@@ -113,16 +113,16 @@ int main() {
113113
pthread_cond_wait(&pending, &lock);
114114
}
115115

116-
// Now the signal is pending on the child thread we block and unblock
117-
// all signals on the mains thread, which should be a no-op
116+
// Now that the signal is pending on the child thread, we block and unblock
117+
// all signals on the mains thread, which should be a no-op.
118118
// We had a bug where pending signals were not stored in TLS which would
119-
// cause this to raise the pending signals erronously here.
119+
// cause this to raise the pending signals erroneously here.
120120
sigset_t set;
121121
sigfillset(&set);
122122
pthread_sigmask(SIG_BLOCK, &set, NULL);
123123
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
124124

125-
// Signal the child thread to unlock and recieve the signal
125+
// Signal the child thread to unlock and receive the signal
126126
unblock_signal = true;
127127
pthread_cond_signal(&unblock);
128128
pthread_mutex_unlock(&lock);

0 commit comments

Comments
 (0)