Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
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;
|
|
}
|
|
|
|
}
|