1
/* $Id: syscall_ptrace.c 61 2006-05-19 18:32:14Z steve-beattie $ */
4
* Copyright (C) 2002-2005 Novell/SUSE
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation, version 2 of the
15
#include <sys/types.h>
18
#include <sys/ptrace.h>
27
int main(int argc, char *argv[])
33
fprintf(stderr, "usage: %s\n", argv[0]);
40
if (pid){ /* parent */
43
while (wait(&status) != pid);
44
retval = WEXITSTATUS(status);
46
if (ptrace(PTRACE_TRACEME, 0, 0, 0) == -1){
47
fprintf(stderr, "FAIL: ptrace failed - %s\n",