File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ RUN: rm -rf %t
55RUN: mkdir -p %t
66RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
77
8+ # The line below needs the " | env" at the end, in order to make the
9+ # script continue executing, rather than waiting (forever) for the
10+ # 'nohup run...' command to finish.
811RUN: bash -c "nohup %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log &" | env
9- RUN: ps auxx | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
12+ RUN: ps aux | grep ForkSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1013RUN: sleep 3
1114RUN: kill -SIGUSR2 %{readfile:%t2}
1215RUN: sleep 6
Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ RUN: rm -rf %t
66RUN: mkdir -p %t
77RUN: %msan_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGINT
88
9+ # The line below needs the " | env" at the end, in order to make the
10+ # script continue executing, rather than waiting (forever) for the
11+ # 'nohup run...' command to finish.
912RUN: bash -c "nohup %run %t/LFSIGINT 2> %t/log &" | env
10- RUN: ps auxx | grep LFSIGINT | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
13+ RUN: ps aux | grep LFSIGINT | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1114RUN: sleep 2
1215RUN: kill -SIGINT %{readfile:%t2}
1316RUN: sleep 3
Original file line number Diff line number Diff line change @@ -6,8 +6,11 @@ RUN: rm -rf %t
66RUN: mkdir -p %t
77RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/LFSIGUSR
88
9+ # The line below needs the " | env" at the end, in order to make the
10+ # script continue executing, rather than waiting (forever) for the
11+ # 'nohup run...' command to finish.
912RUN: bash -c "nohup %run %t/LFSIGUSR 2> %t/log &"| env
10- RUN: ps auxx | grep LFSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
13+ RUN: ps aux | grep LFSIGUSR | grep -v "grep" | awk '{print $2}' | tr -d '\n' > %t2
1114RUN: sleep 2
1215RUN: kill -SIGUSR1 %{readfile:%t2}
1316RUN: sleep 3
You can’t perform that action at this time.
0 commit comments