public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/11586] after call sigaction, system() return wrong status [not found] <bug-11586-4@http.gcc.gnu.org/bugzilla/> @ 2012-05-15 15:19 ` paolo at gcc dot gnu.org 2012-05-15 15:27 ` paolo.carlini at oracle dot com 2014-02-26 21:28 ` jason at gcc dot gnu.org 2 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu.org @ 2012-05-15 15:19 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586 --- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-15 15:14:59 UTC --- Author: paolo Date: Tue May 15 15:14:49 2012 New Revision: 187542 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187542 Log: /cp 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/11586 * pt.c (tsubst_copy_and_build): Increase / decrease c_inhibit_evaluation_warnings around build_x_binary_op call. /c-family 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/11586 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. /testsuite 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/11586 * g++.dg/warn/Wtype-limits.C: Don't warn in templates. * g++.dg/warn/Wtype-limits-Wextra.C: Likewise. Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/Wtype-limits-Wextra.C trunk/gcc/testsuite/g++.dg/warn/Wtype-limits.C ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11586] after call sigaction, system() return wrong status [not found] <bug-11586-4@http.gcc.gnu.org/bugzilla/> 2012-05-15 15:19 ` [Bug c/11586] after call sigaction, system() return wrong status paolo at gcc dot gnu.org @ 2012-05-15 15:27 ` paolo.carlini at oracle dot com 2014-02-26 21:28 ` jason at gcc dot gnu.org 2 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2012-05-15 15:27 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|gcc-bugs at gcc dot gnu.org | --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-15 15:21:19 UTC --- Sorry typoed PR # (meant to be 11856), ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11586] after call sigaction, system() return wrong status [not found] <bug-11586-4@http.gcc.gnu.org/bugzilla/> 2012-05-15 15:19 ` [Bug c/11586] after call sigaction, system() return wrong status paolo at gcc dot gnu.org 2012-05-15 15:27 ` paolo.carlini at oracle dot com @ 2014-02-26 21:28 ` jason at gcc dot gnu.org 2 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2014-02-26 21:28 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586 --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Feb 26 21:28:08 2014 New Revision: 208183 URL: http://gcc.gnu.org/viewcvs?rev=208183&root=gcc&view=rev Log: PR c++/59231 PR c++/11586 PR c++/14710 PR c++/57132 gcc/ * c-common.c (shorten_compare): Don't check c_inhibit_evaluation_warnings. gcc/cp/ * pt.c (struct warning_sentinel): New. (tsubst_copy_and_build): Use it instead of c_inhibit_evaluation_warnings. Added: trunk/gcc/testsuite/g++.dg/warn/Wsign-compare-7.C Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/g++.dg/cilk-plus/AN/array_test2_tplt.cc trunk/gcc/testsuite/g++.dg/cpp0x/overflow1.C ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11586] New: after call sigaction
@ 2003-07-19 0:02 weikun at caltech dot edu
2003-07-19 0:05 ` [Bug c/11586] after call sigaction, system() return wrong status weikun at caltech dot edu
2003-07-19 0:07 ` pinskia at physics dot uc dot edu
0 siblings, 2 replies; 5+ messages in thread
From: weikun at caltech dot edu @ 2003-07-19 0:02 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586
Summary: after call sigaction
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: weikun at caltech dot edu
CC: gcc-bugs at gcc dot gnu dot org
I notice since gcc 3, the return value of system() doesn't work correctly. The
following code will print out return 0 or -1 randomly, please help me how to
solve this problem because I need to check if return value is 0 or -1 to make
sure system call is fine or not.
It happens since RH9, and it works fine before with all the previous verion
RedHat.
> #include <signal.h>
>
> main()
> {
> struct sigaction v_sig;
>
> #if !defined(linux)
> v_sig.sa_flags = SA_NOCLDWAIT;
> #else
> v_sig.sa_handler = SIG_IGN;
> #endif
>
> sigaction(SIGCHLD, &v_sig, 0);
>
> printf("return %d\n", system("ls -l > /dev/null"));
>
> return (0);
> }
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11586] after call sigaction, system() return wrong status 2003-07-19 0:02 [Bug c/11586] New: after call sigaction weikun at caltech dot edu @ 2003-07-19 0:05 ` weikun at caltech dot edu 2003-07-19 0:07 ` pinskia at physics dot uc dot edu 1 sibling, 0 replies; 5+ messages in thread From: weikun at caltech dot edu @ 2003-07-19 0:05 UTC (permalink / raw) To: gcc-bugs PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586 weikun at caltech dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|after call sigaction |after call sigaction, | |system() return wrong status ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11586] after call sigaction, system() return wrong status 2003-07-19 0:02 [Bug c/11586] New: after call sigaction weikun at caltech dot edu 2003-07-19 0:05 ` [Bug c/11586] after call sigaction, system() return wrong status weikun at caltech dot edu @ 2003-07-19 0:07 ` pinskia at physics dot uc dot edu 1 sibling, 0 replies; 5+ messages in thread From: pinskia at physics dot uc dot edu @ 2003-07-19 0:07 UTC (permalink / raw) To: gcc-bugs PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11586 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-19 00:07 ------- We do not control glibc, first I would report it to redhat and they will forward it on to the right people if it is a glibc bug or if they broke any thing. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-26 21:28 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-11586-4@http.gcc.gnu.org/bugzilla/> 2012-05-15 15:19 ` [Bug c/11586] after call sigaction, system() return wrong status paolo at gcc dot gnu.org 2012-05-15 15:27 ` paolo.carlini at oracle dot com 2014-02-26 21:28 ` jason at gcc dot gnu.org 2003-07-19 0:02 [Bug c/11586] New: after call sigaction weikun at caltech dot edu 2003-07-19 0:05 ` [Bug c/11586] after call sigaction, system() return wrong status weikun at caltech dot edu 2003-07-19 0:07 ` pinskia at physics dot uc dot edu
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).