|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Claes Nyberg (md0claes
mdstud.chalmers.se)Date: Tue Feb 12 2002 - 04:31:06 CST
$ cat test.c
int main(int argc,char *argv[]) {
char buf[256];
strcpy(buf,argv[1]);
exit(1);
}
$ gcc -o test test.c
$ ./test `perl -e'print "a" x 1000'`; echo $?
1
$
What does the call to exit add to save
the program from a SIGSEGV?
// Claes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]