Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139177
b: refs/heads/master
c: 5062910
h: refs/heads/master
i:
  139175: ec81b19
v: v3
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Apr 1, 2009
1 parent 10340db commit 73a60ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc71768742b39bca298e9ca6c91e575cd4b140e6
refs/heads/master: 5062910a06ee979002edbf58ab65481c81242df4
8 changes: 4 additions & 4 deletions trunk/arch/um/os-Linux/start_up.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,20 +244,20 @@ static void __init check_sysemu(void)

if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0,
(void *) PTRACE_O_TRACESYSGOOD) < 0))
fatal_perror("check_ptrace: PTRACE_OLDSETOPTIONS failed");
fatal_perror("check_sysemu: PTRACE_OLDSETOPTIONS failed");

while (1) {
count++;
if (ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, 0) < 0)
goto fail;
CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED));
if (n < 0)
fatal_perror("check_ptrace : wait failed");
fatal_perror("check_sysemu: wait failed");

if (WIFSTOPPED(status) &&
(WSTOPSIG(status) == (SIGTRAP|0x80))) {
if (!count) {
non_fatal("check_ptrace : SYSEMU_SINGLESTEP "
non_fatal("check_sysemu: SYSEMU_SINGLESTEP "
"doesn't singlestep");
goto fail;
}
Expand All @@ -271,7 +271,7 @@ static void __init check_sysemu(void)
else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP))
count++;
else {
non_fatal("check_ptrace : expected SIGTRAP or "
non_fatal("check_sysemu: expected SIGTRAP or "
"(SIGTRAP | 0x80), got status = %d\n",
status);
goto fail;
Expand Down

0 comments on commit 73a60ea

Please sign in to comment.