Change in vdsm[master]: Add deathSignal options to better popen
shuming at linux.vnet.ibm.com
shuming at linux.vnet.ibm.com
Tue Sep 25 01:51:58 UTC 2012
Shu Ming has posted comments on this change.
Change subject: Add deathSignal options to better popen
......................................................................
Patch Set 13: I would prefer that you didn't submit this
(1 inline comment)
....................................................
File vdsm/betterPopen/createprocess.c
Line 315: rv = read(errnofd[0], &childErrno, sizeof(int));
Line 316: if (rv < 0) {
Line 317: switch (errno) {
Line 318: case EINTR:
Line 319: case EAGAIN:
errnofd[] are blocking IO fds here, see the code line 226. pipe() system call should return non-blocking fds without O_NONBLOCK set manually. So EAGAIN is not a possible error value for the read() call here, EAGAIN is only for non-blocking fds. Tough it is not harmful to handle EAGAIN case here, I would suggest to remove EAGAIN in case of confusing. Please ignore my previous comments about EAGAIN. So you only need handle EINTR here.
Line 320: break;
Line 321: default:
Line 322: PyErr_SetString(PyExc_OSError, strerror(childErrno));
Line 323: goto fail;
--
To view, visit http://gerrit.ovirt.org/6241
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f987129cea112e2a75d6f02477369417cc50dc7
Gerrit-PatchSet: 13
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ewoud Kohl van Wijngaarden <ewoud at kohlvanwijngaarden.nl>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Shu Ming <shuming at linux.vnet.ibm.com>
Gerrit-Reviewer: Xu He Jie <xuhj at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the vdsm-patches
mailing list