LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2017, 01:43 PM   #1
ssiegwald
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
Unable to fork my process and have the child in its own xterm


I have a multi-threaded application. It uses fork to create the multiple processes all sharing some of the common resources and setup. Unfortunately, there is output from each of the child processes and it is very difficult to see what each is doing. I'd like to have the child processes each have its own console/terminal/xterm so that it can interact with the user.
 
Old 03-14-2017, 05:50 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,576

Rep: Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341Reputation: 4341
threads inherit the console/terminal settings, so if you want to have different ones all the threads must create their own ones. Or you need to create xterms before and pass them to your app somehow...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] creating a child process in Linux using fork mehreen124 Linux - Newbie 1 03-03-2014 11:14 AM
Can I fork a foreground child process in a background process? henryyao Linux - Newbie 1 09-06-2013 04:32 PM
[SOLVED] problem with fork()ing multing child process in C wch705 Programming 3 05-15-2011 06:28 AM
fork(), variable values between child and parent process???? dearvivekkumar Programming 6 02-24-2010 06:18 AM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration