#include "sysdep/sigcontext.h"
#include "frame_user.h"
#include "kern_util.h"
-#include "user_util.h"
#include "ptrace_user.h"
#include "os.h"
/* Wait for it to stop itself and continue it with a SIGUSR1 to force
* it into the signal handler.
*/
- CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED));
+ n = waitpid(pid, &status, WUNTRACED);
if(n < 0){
printf("capture_stack : waitpid failed - errno = %d\n", errno);
exit(1);
* At this point, the handler has stuffed the addresses of
* sig, sc, and SA_RESTORER in raw.
*/
- CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED));
+ n = waitpid(pid, &status, WUNTRACED);
if(n < 0){
printf("capture_stack : waitpid failed - errno = %d\n", errno);
exit(1);
errno);
exit(1);
}
- CATCH_EINTR(n = waitpid(pid, &status, 0));
- if(n < 0){
+ if(waitpid(pid, &status, 0) < 0){
printf("capture_stack : waitpid failed - errno = %d\n", errno);
exit(1);
}