@@ -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