From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Bob Liu <lliubbo@gmail.com>
Cc: Ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [Bug Fix]semctl01 and shmctl01 will hang during uClinux test
Date: Sat, 03 Jul 2010 23:14:52 +0530 [thread overview]
Message-ID: <1278179092.7665.7.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <AANLkTikvEYeg8DZfl6Deuge9f9Lk_uhA0MuW_OP4Ve9M@mail.gmail.com>
Ok. Thanks.
Regards--
Subrata
On Fri, 2010-07-02 at 13:41 +0800, Bob Liu wrote:
> ltp test case shmctl01 and semctl01 can not execute. When press ctrl
> and c, it can not exist.
>
> --
> root:/> shmctl01
>
>
> ^Cshmctl01 0 INFO : received unexpected signal 2
> ^Cshmctl01 0 INFO : received unexpected signal 2
> --
>
> The reason is the child will unlink the pipe if pipename isn't
> NULL,which may make the parent
> waitting forever.
>
>
> Index: testcases/kernel/syscalls/ipc/semctl/semctl01.c
> ===================================================================
> --- testcases/kernel/syscalls/ipc/semctl/semctl01.c
> +++ testcases/kernel/syscalls/ipc/semctl/semctl01.c
> @@ -400,7 +400,11 @@
> if (sync_pipe_notify(sync_pipes) == -1)
> tst_brkm(TBROK, cleanup, "sync_pipe_notify failed");
>
> +#ifdef UCLINUX
> + if (sync_pipe_close(sync_pipes, NULL) == -1)
> +#else
> if (sync_pipe_close(sync_pipes, PIPE_NAME) == -1)
> +#endif
> tst_brkm(TBROK, cleanup, "sync_pipe_close failed");
>
> sops.sem_num = SEM4;
> Index: testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
> ===================================================================
> --- testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
> +++ testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
> @@ -324,8 +324,11 @@
>
> if (sync_pipe_notify(sync_pipes) == -1)
> tst_brkm(TBROK, cleanup, "sync_pipe_notify failed");
> -
> +#ifdef UCLINUX
> + if (sync_pipe_close(sync_pipes, NULL) == -1)
> +#else
> if (sync_pipe_close(sync_pipes, PIPE_NAME) == -1)
> +#endif
> tst_brkm(TBROK, cleanup, "sync_pipe_close failed");
>
> /* do an assignement for fun */
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2010-07-03 17:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-02 5:41 [LTP] [Bug Fix]semctl01 and shmctl01 will hang during uClinux test Bob Liu
2010-07-03 17:44 ` Subrata Modak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1278179092.7665.7.camel@subratamodak.linux.ibm.com \
--to=subrata@linux.vnet.ibm.com \
--cc=Ltp-list@lists.sourceforge.net \
--cc=lliubbo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox