> -----Original Message----- > From: Xenomai <xenomai-boun...@xenomai.org> On Behalf Of Lowell > Gilbert via Xenomai > Sent: Freitag, 26. April 2019 23:19 > To: xenomai@xenomai.org > Subject: having problems with daemonizing > > E-MAIL FROM A NON-ANDRITZ SOURCE: AS A SECURITY MEASURE, PLEASE > EXERCISE CAUTION WITH E-MAIL CONTENT AND ANY LINKS OR > ATTACHMENTS. > > > Hi. > > I have an application working successfully with Xenomai 3.0.8 on a 4.14 > kernel. I use Yocto to build the system; when I tried to move to a newer > version of Yocto, my application hung on trying to become a daemon. This is > happening with the daemon() call (which is what I've used up to now) and > with fork(). > > I built a test application so that I could confirm that this problem only > occurs > when I link (and wrap) with Xenomai. However, Xenomai doesn't seem to do > anything significant with fork, so I'm puzzled about why this might be > happening. I am not using libdaemon. > > Here are the changes that I thought might be significant: > | newer (nonworking setup) | older (working) | > | gcc-cross-arm-8.2.0 | 7.3.0 | > | glibc-2.28 | 2.26 | > | glib-2.0-1_2.58.0 | 1_2.52.3-r0 | > | binutils-cross-arm-2.31.1 | 2.29.1 | > | coreutils-8.30 | 8.27 | > > Does anything jump out as a candidate for causing problems with a fork() > call? Is there anything else I should be considering?
There is a general issue with glibc 2.28 (and newer), exec'ing a Xenomai executable after a fork: https://www.xenomai.org/pipermail/xenomai/2019-March/040519.html Norbert ________________________________ This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. ANDRITZ HYDRO GmbH Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation Firmensitz/ Registered seat: Wien Firmenbuchgericht/ Court of registry: Handelsgericht Wien Firmenbuchnummer/ Company registration: FN 61833 g DVR: 0605077 UID-Nr.: ATU14756806 Thank You ________________________________