Name:
Anonymous
2010-01-28 11:03
Can anyone tell me what's wrong with this code? It gives me segmentation fault.
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#define start kill(getpid
#define end ,11); fork
int main (int argc, char **argv)
{
start()
end();
}
Name:
Anonymous
2010-01-28 11:14
kill SIGSEGV gives a segmentation fault, who would have thought!
Name:
Anonymous
2010-01-28 15:37
You forgot to #include <void.h>
Name:
Anonymous
2010-01-28 16:18
>>3
Well... I don't really remember if it was <void.h> or "void.h". I guess he was just copying it all over for every fucking project.
Name:
Anonymous
2010-01-28 16:37
>>4
>implying that FrozenVoid actually writes code
Name:
Anonymous
2010-01-28 16:41
>>4
"void.h", I actually checked it once.
Name:
Anonymous
2010-01-28 16:52
>>6-san, you smell of Frozen Void. Did you actually check it once
on your own source code?
Name:
Anonymous
2010-01-28 16:55
>>7
Hey now, I don't think I deserve a comment like that,
especially not from one who can't even
escape his hyphens.
Name:
Anonymous
2010-01-28 17:08
>>8
Oh, sorry I didn't intend to offend you.
Name:
Anonymous
2010-01-28 17:38
>>9
Apology accepted. I harbor no ill feelings.