Issue 12607

Summary: missing /bin/domainname leads to abort
Product: udk Reporter: philipp.lohmann
Component: codeAssignee: hennes.rohling
Status: CLOSED DUPLICATE QA Contact: issues@udk <issues>
Severity: Trivial    
Priority: P2 CC: issues
Version: 644   
Target Milestone: OOo 1.1 Beta2   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description philipp.lohmann 2003-03-24 09:25:27 UTC
in sal/osl/unx/socket.c:870 in case of a missing /bin/domainname there is a
exit(-1) in the fork'ed process. This is not really wrong, but causes bad side
effects: destructors are called which e.g. close the X display connection; since
the connection is shared after the fork() it tells the Xserver that this client
is dead, which leads to the main process receiving an XIO error (or IceIO error
whichever comes first) - meaning instant termination of the main process. Please
use _exit() instead which will not cose such problems as it only close the open
file descriptors for the fork()'ed process. Please also have a look whether
there are similar action in the code.

Please fix this for OOo 1.0.3 also.
Comment 1 philipp.lohmann 2003-03-24 12:58:43 UTC
There is already issue 11777 covering this problem

*** This issue has been marked as a duplicate of 11777 ***
Comment 2 hennes.rohling 2003-04-29 15:55:01 UTC
closed