All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] "pidns17" problem in "2010-02-11" cvs
@ 2010-02-12  7:50 Mitani
  2010-02-12 17:51 ` Serge E. Hallyn
  0 siblings, 1 reply; 6+ messages in thread
From: Mitani @ 2010-02-12  7:50 UTC (permalink / raw)
  To: ltp-list

Hi,

I tried to test with "2010-02-11" cvs in RHEL5.4 system.
But the test brings termination of connection.

I examined the phenomenon and discovered that "pidns17" test made 
accident and sshd stopped after the test.


I had some problems.

1. I think that "tst_exit()" must be added last of "cleanup()"
   function.
============
--- ./testcases/kernel/containers/pidns/pidns17.c       2009-12-07
05:55:16.000000000 +0900
+++ ./testcases/kernel/containers/pidns/pidns17.c.new   2010-02-12
16:26:31.000000000 +0900
@@ -104,7 +104,6 @@

        /* cleanup and exit */
        CLEANUP();
-       tst_exit();
 }

 /***********************************************************************
@@ -136,7 +135,6 @@

        /* cleanup and exit */
        CLEANUP();
-       tst_exit();
 }      /* End main */

 /*
@@ -147,4 +145,5 @@
 {
        /* Clean the test testcase as LTP wants*/
        TEST_CLEANUP;
+       tst_exit();
 }
============

After revision, connection termination didn't occur.


2. I cannot understand the purpose that "kill()" function whose 
   first parameter is "-1" is called.
------------
        if (kill(-1, SIGUSR1) == -1) {
                tst_resm(TBROK | TERRNO, "cinit: kill(-1, SIGUSR1) failed");
                CLEANUP();
        }
------------

If kill()'s first option is "-1", "man kill" says that
"All processes with pid larger than 1 will be signaled."

Therefore, not only the "sshd" but also the other processes were 
affected, I think.


I'm glad if I could get some opinions.


Thank you--


-Tomonori Mitani




------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2010-02-12 19:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12  7:50 [LTP] "pidns17" problem in "2010-02-11" cvs Mitani
2010-02-12 17:51 ` Serge E. Hallyn
2010-02-12 19:17   ` Garrett Cooper
2010-02-12 19:23     ` Garrett Cooper
2010-02-12 19:37       ` Serge E. Hallyn
2010-02-12 19:41     ` Serge E. Hallyn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.