This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients python-dev, vstinner
Date 2015-09-16.08:51:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442393506.65.0.25431238584.issue25122@psf.upfronthosting.co.za>
In-reply-to
Content
Syscalls traced by truss.


Parent process:

 1436: unlink("fifo_5950861521")                 ERR#2 'No such file or directory'
 1436: open("fifo_5950861521",O_WRONLY|O_CLOEXEC,00) ERR#4 'Interrupted system call'
 1436: open("fifo_5950861521",O_WRONLY|O_CLOEXEC,00) ERR#4 'Interrupted system call'
 ...
 1436: open("fifo_5950861521",O_WRONLY|O_CLOEXEC,00) ERR#4 'Interrupted system call'


Child process:

 2689: open("fifo_5950861521",O_CLOEXEC,00)      = 3 (0x3)
 2689: close(3)                                  ERR#4 'Interrupted system call'


Hum, it looks like the child process gets signals, many syscalls are interrupted by signals. In my simple test, 7 syscalls were interrupted by signals in the child process. I didn't expect "setitimer" to be inherited by subprocess.Popen.

The suspicious thing is that close() fails with EINTR in the child process and it is not retried.
History
Date User Action Args
2015-09-16 08:51:46vstinnersetrecipients: + vstinner, python-dev
2015-09-16 08:51:46vstinnersetmessageid: <1442393506.65.0.25431238584.issue25122@psf.upfronthosting.co.za>
2015-09-16 08:51:46vstinnerlinkissue25122 messages
2015-09-16 08:51:46vstinnercreate