Philip Zeyliger has posted comments on this change. (
http://gerrit.cloudera.org:8080/10177 )
Change subject: IMPALA-6740: Fix flaky test_cancellation
......................................................................
Patch Set 2: Code-Review+2
It's totally academic, but if you want to see if a Linux process is listening
to a signal, you can figure it out based on /proc/self/status:
>>> print bin(int([x for x in file("/proc/self/status").readlines() if "SigCgt"
>>> in x][0].split("\t")[1].strip(), 16))
0b110001000000000000000000000000010
>>> def f():
... pass
>>> import signal
>>> signal.signal(8, f)
0
>>> print bin(int([x for x in file("/proc/self/status").readlines() if "SigCgt"
>>> in x][0].split("\t")[1].strip(), 16))
0b110001000000000000000000010000010
Note how signal 8 had its bit flipped.
--
To view, visit http://gerrit.cloudera.org:8080/10177
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5d13de6207807e4ba2e2e406a29d670f01d6c3a0
Gerrit-Change-Number: 10177
Gerrit-PatchSet: 2
Gerrit-Owner: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Philip Zeyliger <[email protected]>
Gerrit-Comment-Date: Tue, 24 Apr 2018 20:54:54 +0000
Gerrit-HasComments: No