File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1855,27 +1855,20 @@ extern "C" {
1855
1855
sig : :: c_int ,
1856
1856
sa : * const sigaction ,
1857
1857
old : * mut sigaction ,
1858
- _external_handler : :: Option < unsafe extern "C" fn ( :: c_int ) >
1858
+ _external_handler : :: Option < unsafe extern "C" fn ( :: c_int ) > ,
1859
1859
) -> :: c_int ;
1860
1860
#[ cfg( target_vendor = "wasmer" ) ]
1861
1861
fn __wasm_signal ( signum : :: c_int ) ;
1862
1862
}
1863
1863
1864
1864
#[ cfg( target_vendor = "wasmer" ) ]
1865
- pub unsafe fn sigaction (
1866
- sig : :: c_int ,
1867
- sa : * const sigaction ,
1868
- old : * mut sigaction ,
1869
- ) -> :: c_int {
1870
- sigaction_external_default ( sig, sa, old, Some ( default_handler) )
1865
+ pub unsafe fn sigaction ( sig : :: c_int , sa : * const sigaction , old : * mut sigaction ) -> :: c_int {
1866
+ sigaction_external_default ( sig, sa, old, :: Option :: Some ( default_handler) )
1871
1867
}
1872
1868
1873
1869
#[ cfg( target_vendor = "wasmer" ) ]
1874
1870
extern "C" fn default_handler ( sig : :: c_int ) {
1875
- if sig == SIGCHLD
1876
- || sig == SIGURG
1877
- || sig == SIGWINCH
1878
- || sig == SIGCONT {
1871
+ if sig == SIGCHLD || sig == SIGURG || sig == SIGWINCH || sig == SIGCONT {
1879
1872
return ;
1880
1873
} else {
1881
1874
unsafe { abort ( ) } ;
You can’t perform that action at this time.
0 commit comments