Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » How to fork a Titan process(TITAN - fork process)
How to fork a Titan process [message #1771014] Mon, 21 August 2017 08:01 Go to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello All,

I have a question regarding the way to handle a fork operation on a TITAN test suite process:
1) first of all, is it possible to do a fork?
2) If so, haw can I duplicate the handles such as the handles for the logging and so on?
3) Is there some constraint when the child process ended?

Many thanks for your help,

Best regard,

Yann
Re: How to fork a Titan process [message #1771015 is a reply to message #1771014] Mon, 21 August 2017 08:10 Go to previous messageGo to next message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 133
Registered: December 2015
Senior Member
What exactly would like to do?

- Execute an exeternal/OS command from TTCN code?
- Create a TTCN component?
- Duplicate the current TTCN component?
Re: How to fork a Titan process [message #1771016 is a reply to message #1771015] Mon, 21 August 2017 08:14 Go to previous messageGo to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello,

The point is that I need to run a background task but a TITAN process is not thread safe. So, my idea is to duplicate the process and execute in the child process my background task.

Thanks a lot,

Best regards,

Yann
Re: How to fork a Titan process [message #1771029 is a reply to message #1771016] Mon, 21 August 2017 10:58 Go to previous messageGo to next message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 133
Registered: December 2015
Senior Member
Check the PIPE test port.

The PIPE test port is created to run external commands/background task from TTCN.
Re: How to fork a Titan process [message #1771051 is a reply to message #1771029] Mon, 21 August 2017 13:54 Go to previous message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Thanks a lot for your help.
Previous Topic:User guide for LTTng and Trace Compass with Titan
Next Topic:Issue with ETSI LibCommon
Goto Forum:
  


Current Time: Fri Apr 19 16:35:34 GMT 2024

Powered by FUDForum. Page generated in 0.01932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top