Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: fusl/src/signal/raise.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include <signal.h> 1 #include <signal.h>
2 #include <stdint.h> 2 #include <stdint.h>
3 #include "syscall.h" 3 #include "syscall.h"
4 #include "pthread_impl.h" 4 #include "pthread_impl.h"
5 5
6 int raise(int sig) 6 int raise(int sig) {
7 { 7 int tid, ret;
8 » int tid, ret; 8 sigset_t set;
9 » sigset_t set; 9 __block_app_sigs(&set);
10 » __block_app_sigs(&set); 10 tid = __syscall(SYS_gettid);
11 » tid = __syscall(SYS_gettid); 11 ret = syscall(SYS_tkill, tid, sig);
12 » ret = syscall(SYS_tkill, tid, sig); 12 __restore_sigs(&set);
13 » __restore_sigs(&set); 13 return ret;
14 » return ret;
15 } 14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698