public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* fork() doesn't forks a new process.
@ 2003-01-07 16:23 Carles Xavier Munyoz Baldó
  2003-01-07 23:16 ` Joe Buck
  0 siblings, 1 reply; 2+ messages in thread
From: Carles Xavier Munyoz Baldó @ 2003-01-07 16:23 UTC (permalink / raw)
  To: gcc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I'm using the 3.2 version of the gcc compiler in a RedHat 8.0 Linux box with 
the kernel 2.4.18-19.8.0.

I'm programming a concurrent TCP server daemon that forks a child process to 
service every connection it receives.

For this I use the fork() system call to create such child process, but I have 
observed that when I run the daemon and make a TCP connection over its TCP 
port, there is no new process in the system. Instead of the process a new 
thread is created.
Moreover, I have observed that when the daemon sends bytes to the client, the 
threat becomes a process.

Is this behavior normal ?
Who causes this behavior, the gcc code generated by the GCC or the linux 
Kernel 24.18 ?

Is it possible to advoid this behavior (with a gcc option, or modifying one of 
the /proc kernel parameters) ?
 
Greetings.
- ---
Carles Xavier Munyoz Baldó
carles@descom.es
Descom Consulting
Telf: +34 965861024
Fax: +34 965861024
http://www.descom.es/
- ---
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBPhrsAzvYAf7VZNaaEQJ3eACfXAZO48ciesLxaUC8o+Ch239vqq8AoPxl
86746YF+gxS4F4tDwSp0kxA7
=lA4a
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fork() doesn't forks a new process.
  2003-01-07 16:23 fork() doesn't forks a new process Carles Xavier Munyoz Baldó
@ 2003-01-07 23:16 ` Joe Buck
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Buck @ 2003-01-07 23:16 UTC (permalink / raw)
  To: Carles Xavier Munyoz Bald?; +Cc: gcc

On Tue, Jan 07, 2003 at 04:02:26PM +0100, Carles Xavier Munyoz Bald? wrote:
> I'm using the 3.2 version of the gcc compiler in a RedHat 8.0 Linux box with 
> the kernel 2.4.18-19.8.0.
> 
> I'm programming a concurrent TCP server daemon that forks a child process to 
> service every connection it receives.

Then you're on the wrong list.  I'm puzzled as to why you think that
unexpected behavior of OS services could be a compiler issue.
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-07 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-07 16:23 fork() doesn't forks a new process Carles Xavier Munyoz Baldó
2003-01-07 23:16 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).