LinuxQuestions.org
Review your favorite Linux distribution.
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, 12: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, 04:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,236

Rep: Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836
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 10:14 AM
Can I fork a foreground child process in a background process? henryyao Linux - Newbie 1 09-06-2013 03:32 PM
[SOLVED] problem with fork()ing multing child process in C wch705 Programming 3 05-15-2011 05:28 AM
fork(), variable values between child and parent process???? dearvivekkumar Programming 6 02-24-2010 05:18 AM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 08:16 AM

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

All times are GMT -5. The time now is 09:16 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
Open Source Consulting | Domain Registration