PR# 14357 EXECUTION_ENVIRONMENT.system returns -1 and ignore_signals

Problem Report Summary
Submitter: lengus
Category: Runtime
Priority: Medium
Date: 2008/05/13
Class: Bug
Severity: Serious
Number: 14357
Release: 6.2.7.3306 linux
Confidential: No
Status: Open
Responsible:
Environment: Linux grslab 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
Synopsis: EXECUTION_ENVIRONMENT.system returns -1 and ignore_signals

Description
We are using the routine 'ignore_signals' (attached) to avoid malloc deadlock. This works with Eiffel 5.6, 5.7 and 6.1 on Sun Solaris. 'ignore_signals' was provided by Manu after some mail conversation with Jan-Erik Blomqvist, subject: "Disk operations with EiffelStudio". The routine is called in the beginning of the create routine in the root class.

Now on Linux (Ubuntu) we detected that EXECUTION_ENVIRONMENT.system works fine before a call to 'ignore_signals' but it fails with return_code=-1 after a call to 'ignore_signals'.
Is 'ignore_signals' still needed or do we need a modified version?

Regards, Lennart Gustafsson
To Reproduce

										
Problem Report Interactions
From:lengus    Date:2008/05/13    Download   
Attachments for problem report #14357

Attachment: rs_thread_control.e     Size:3200