19 lines
200 B
C
19 lines
200 B
C
#include <signal.h>
|
|
#include <unistd.h>
|
|
|
|
#include "stack-fcall.h"
|
|
|
|
int f3(int i)
|
|
{
|
|
static int pid;
|
|
|
|
switch (i) {
|
|
case 1:
|
|
return kill(pid, SIGURG);
|
|
|
|
default:
|
|
return (pid = getpid()) + i;
|
|
}
|
|
|
|
}
|