mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* signal handlers not linked properly in do_fork()?
@ 2000-10-28 18:44 David Eger
  2000-10-28 18:49 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: David Eger @ 2000-10-28 18:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: eger


I've been looking at the code for do_fork() / copy_sighand() and am
mystified by the following.  It seems that copy_sighand() only sets the
new task's sig member if it is not CLONEd from the parent.  

If the signal_struct is CLONEd from the parent, it increments the parent's
signal_struct's reference count, but does not set the new task's sig
member.  I see nowhere else in do_fork() where sig is set, either.  
What gives?

-David Eger

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: signal handlers not linked properly in do_fork()?
  2000-10-28 18:44 signal handlers not linked properly in do_fork()? David Eger
@ 2000-10-28 18:49 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2000-10-28 18:49 UTC (permalink / raw)
  To: eger; +Cc: linux-kernel, eger

   Date: 	Sat, 28 Oct 2000 14:44:03 -0400 (EDT)
   From: David Eger <eger@cc.gatech.edu>

   I see nowhere else in do_fork() where sig is set, either.  What
   gives?

fork.c, around line 560:
*p = *current

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-10-28 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-28 18:44 signal handlers not linked properly in do_fork()? David Eger
2000-10-28 18:49 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®