Created
September 2, 2015 16:30
-
-
Save lhuard1A/f88cce7487e84ff7a9e8 to your computer and use it in GitHub Desktop.
How to create a GO program that cores…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
// #include <stdlib.h> | |
// #include "signal.h" | |
import "C" | |
func main() { | |
fmt.Println("Good bye!") | |
C.signal(C.SIGABRT, 0) | |
C.abort() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#define _SIGNAL_H | |
#include <bits/signum.h> | |
void (*signal(int sig, int func))(int); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment