mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
24 lines
324 B
C++
24 lines
324 B
C++
#include "function1.h"
|
|
#include <iostream>
|
|
#include <unistd.h>
|
|
#include <signal.h>
|
|
|
|
|
|
void function1 (const std::string& text) {
|
|
|
|
int i = 42;
|
|
|
|
sleep(2); // Simulate doing work.
|
|
|
|
std::cout << text << i << std::endl;
|
|
|
|
//raise(SIGSEGV);
|
|
|
|
int* x = 0;
|
|
|
|
*x = 2112;
|
|
|
|
sleep(3); // Simulate doing work.
|
|
}
|
|
|