From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Message-ID: <17866.56537.695811.3523@domain.hid> Date: Thu, 8 Feb 2007 09:18:33 +0100 Subject: Re: [Xenomai-core] system() question In-Reply-To: <45CAE1C2.5040207@domain.hid> References: <45C9F9CD.6000101@domain.hid> <45C9F2F9.3020204@domain.hid> <45CAE1C2.5040207@domain.hid> From: Gilles Chanteperdrix Content-Transfer-Encoding: Quoted-Printable List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?St=E9phane_ANCELOT?= Cc: xenomai-core St=E9phane ANCELOT wrote: > my linux user task uses a system() call in order to call a bash script= =20 > to restart the realtime task as follow : >=20 > user interface C call : > system("restart_task.sh"); > give back hand to user interface > .... >=20 >=20 >=20 >=20 > bash script restart_task.sh : > killall -15 mytask > sleep 2 > mytask & >=20 >=20 > system call dies because sh script has been launched Try calling daemon(0,0) in mytask instead of using "&" to make it run in the background. --=20 Gilles Chanteperdrix.